Hi Diogo,
(I started a new thread as this is no longer about building)
>> btw, if you've been using the rest of EJB specific plugin fell free to
>> shot your comments
I've just ran XDoclet2 on a project I created about 3 years ago, containing
300 EJB's (of which about 150 CMP Beans using CMR intensively) and I ran
into a few compatibility issues:
1) We used to define the persistent fields as follows
* @ejb.persistent-field
* @ejb.persistence column-name="TREE_COD"
or even using the "ejb.persistence" tag only.
The new system only supports "ejb.persistent-field" at method level. This
looks correct to me, but it breaks backwards compatibility -> I don't know
what should be done about this (maybe add an explication to the
compatibility page?)
2) The "ejb.data-object" used to have (at least) the following parameters:
"container", "setdata", "generate"
I don't remember the details, but they where needed although we where only
using value objects. I currently just removed them and all seems to be fine.
3) The "ejb.finder" tag used to support a "max-elements" attribute (which
was IMHO only used by container specific plug-ins).
Would it be possible to add this again? If not, I'll have to duplicate all
finders with a WebLogic specific version (I can do it myself if you prefer)
4) The "ejb.value-object" tag can no longer be used at method level ->
replaced by "ejb.value-object-field".
Again, this looks correct, but it breaks backwards compatibility.
5) The new "ejb.value-object-field" doesn't support the manage & type
attributes.
manage: it's possible that I implemented this 'manage' myself a very long
time ago (shame on me for not remembering), but it was useful: when set on a
value-object-field representing a CMR field, it allowed to skip updating the
related beans when calling setXXXValue()
type: I don't remember why this was needed, but in our code this used to be
set to "Collection".
I currently just removed both fields.
6) We sometimes use the value "both" for the "view-type" attribute of
"ejb.create-method", while it now only supports "local" & "remote"
The value "both" should be added & implemented as I don't have an
alternative. Can you do so (the EJB plug-in has a few failing tests, so I
don't dare to change myself)
Regards,
Ive Hellemans
HI Quality Software
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest