facebook

XDoclet value-object bug

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200335 Reply

    rbrindl
    Member

    I am testing myeclipse for a view hours now, and tried to convert an existing project, which was set up using jboss-ide, in other words xdoclet.
    when i now generate the code with myeclipse, the value-objects of 2 beans are generated the wrong way.
    in any of those beans i use 3 value-objects (using match) to get different levels of detail. the value objects extend each other, so i have the following value-objects:

    1.) ProductEJBMinValue
    2.) ProductEJBValue
    3.) ProductEJBFullValue

    2.) extends 1.) and 3.) extends 2.)

    when i generate using myeclipse, the resulting objects all extend ProductEJBMinValue (including ProductEJBMinValue itself) which leads to a cyclic hierarchy.
    maybe the problem is in xdoclet. myeclipse uses 1.2b4 (which i havent seen on xdoclet.sourceforge.org, btw) whereas jboss-ide uses 1.2b3 (the latest official release).
    while writing this i had the idea to look at the xdt-templates of valueobject.xdt and noticed, that there is a difference. i didnt analyze this in further detail, but i suspect, that the 1.2b4 version just takes the first occurence of value-object tag, while the 1.2b3 version takes the corresponding (correct) tag.

    for now i just put in the old version of the ejb-module.
    i hope there will be a fix soon.
    i wont send a bug-report to xdoclet, as there is no 1.2b4 release. is this a special my-eclipse-release?

    #200344 Reply

    Scott Anderson
    Participant

    Thanks for posting this and please let us know if you can determine what corrects the issue.

    i wont send a bug-report to xdoclet, as there is no 1.2b4 release. is this a special my-eclipse-release?

    No, it’s not and we didn’t make any changes to it. When we downloaded the build marked 1.2b3 from the XDoclet site, all the internal jars were labeled 1.2b4, so we just left them that way. I believe you’ll see that this is still the case today since I checked to see if there was an update a little while ago. So, I believe that we have the absolute latest version in MyEclipse. It would be interesting if you could independently verify that by comparing the files in question and then we’d know if it was something that we need to notify XDoclet about.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XDoclet value-object bug

You must be logged in to post in the forum log in