Ejb3 - GeneratorType

"Darren Hartford" <[email protected]> Fri, 4 Nov 2005 15:15:44 -0500
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hey all,
I've been actively using the CMP30/ejb3 middlegen templates with great
success!=20

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 =3D 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