Konstantin,
>> What features do you miss? <<
Actually, I'm not sure. The last time I ran XDoclet2, I was missing a bunch of associations, but from your comments it looks like I was using the wrong tags.
And as long as XD1 tag has different name, you coudl use it together with XD2 tag. You will only get warning about unknown tag. <<
Yes, but I have enough difficulty understanding my code without having two sets of similar looking tags :-)
Ideally, I think I'd like for the XDoclet2 plugins to use "@hibernate2.<tagname>" or something. That way, I could co-exist the tags without getting confused, run both XDoclet and XDoclet2, and compare the outputs for equivalence. Is there any way to configure the hibernatedoclet task to use a different prefix?
Keep up the great work. I wish I had a bit more time to contribute better!
John
Konstantin Priblouda wrote:
--- John Latham <[EMAIL PROTECTED]> wrote:
Hi,
For my project right now, the Hibernate plugin for
XDoclet seems better than the equivalent for XDoclet2 (or perhaps I'm not
using the right tags yet). So far, I've gone from XDoclet->XDoclet2
and back again
What features do you miss?
I would like to switch back and forth like this as
both systems develop. This is painful, as the tags are incompatible but
share the same "namespace" (@hibernate) so should not co-exist in
the same source files (or perhaps I should just ignore warnings during
mapping file generation!).
I end up doing a load of find/replace, for example,
@hibernate.collection-key ->
@hibernate.key-property
@hibernate.vollection-key in XD1 corresponds to @hibernate.key. Key-property is qute different
@hibernate.one-to-many ->
@hibernate.collection-one-to-many
This was syntactic improvement.
Maybe I'll write some sed scripts to do this, but
maybe some tools exist already for tag migration..?
There is an idea to provide "deprecated" version of
tags with XD1 names - where possible ( parameters
have changed too )
And as long as XD1 tag has different name, you coudl
use it together with XD2 tag. You will only get
warning about unknown tag.
regards,
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
