I got to the bottom of it finally ... this thread explains it all:
http://forum.hibernate.org/viewtopic.php?p=2320168#2320168 http://forum.hibernate.org/viewtopic.php?p=2320168#2320168 Konstantin Priblouda wrote: > > > > --- sorin7486 <[EMAIL PROTECTED]> wrote: > >> >> So here is my problem: i am using hibernate 3 in a >> project and I need to use >> sequences but the mapping has to use class generator >> = "assigned"... So > > Why? Assigned means you have to provide ID somehow, > and hibernate will use it. > > Sequences (typically) are covered by "native". > >> hbm2ddl will not generate the sequences and I >> decidet to make an >> <data-object> in the mappings that will do that.. >> But because I use xdoclet >> to generate the mapping files from java files I want >> to add this >> <data-object> tag to the annotations in the java >> files... Sadly I couldn't >> find any way to do this... >> >> Can anybody help me with this or sugest another >> solution? thank you > > Hmm, I have to grok first what you really like to > do... > regards, > > ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- > Still using XDoclet 1.x? XDoclet 2 is released and of production quality. > check it out: http://xdoclet.codehaus.org > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > xdoclet-user mailing list > xdoclet-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > -- View this message in context: http://www.nabble.com/how-to-put-%3Cdata-object%3E-through-java2hbm-in-the-mapping-file-tf2182295.html#a6079873 Sent from the xdoclet-user forum at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user