From: Konstantin P. <kpr...@ya...> - 2006-08-31 08:17:31
|
--- sorin7486 <sor...@gm...> 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 |