Re: Ejb3 - GeneratorType
Wouter Boers - List <[email protected]> Sat, 05 Nov 2005 18:30:23 +0100
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
Yes, Modify the velocity template to only generate this XDoclet tag when the primairy key is either a Long or Interger. That is the way its supposed to be anyways imho :) Regards, wouter Darren Hartford wrote: >Hey all, >I've been actively using the CMP30/ejb3 middlegen templates with great >success! > >I however ran into this issue and rather start digging into the code >off-the-bat, first ask if anyone knows how to solve this problem. > >I have a field in the database that is a String and the PRIMARY KEY. >This String will be populated by the application/user. > >When using middlegen to generate the classes from the DB, I can not >figure out a way to stop it from doing this: > >@javax.persistence.Id(generate = javax.persistence.GeneratorType.AUTO) > >Any recommendations? > >Thanks, >-D > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >middlegen-user mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php