Re: When generating Hibernate mapping files, how can I get a version attribute correctly generated?
Konstantin Priblouda <[email protected]> Sat, 2 Dec 2006 05:42:08 -0800 (PST)
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
--- "Hoylman, Bruce" <[email protected]> wrote: > Hibernate supports version attributes for > automatically versioning > persistent objects. Is there a way to get Middlegen > to correctly > generate this attribute in the mapping files it > generates from a prefs > file? Simply creating the column on the underlying > table is > insufficient as Hibernate requires this attribute to > specify some > additional configuration information in support of > its specialized > versioning role. AFAIR, middlegen generates xdoclet-tagged java sources. thus,those attributes have to be supported by xdoclet. I'm not sure wheter XD1 supports this, but XD2 does. 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 ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV