I've gotten stumped on what I thought would be a very simple task.

I have my XML Schema all squared away and I'm happy with the classs that 
the generator creates from it.

But now, I want to drive the creation of Hibernate hbm.xml using XDoclet 
tags in these generated classes.  Unfortunately there does not seem to
be a way to tell Castor to put arbitrary XDoclet tags into the source it
generates.  <annotation> looked promising but it doesn't do the right
thing.  I'm not able to control where it puts the tags (e.g., which
method decl it belongs to), and also it makes copies of the tags and 
doesn't really format them very well.

I don't want to edit the files after they are generated, as that would
defeat the purpose.  If I had more time, I'd make a schema that
encapsulates Hibernate mappings and the markup needed for Castor
generation and then make an ant task that does both together.


Is there a way to do this?  Or am I just going to get funny looks (why
Hibernate AND Castor?)

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to