[EMAIL PROTECTED] wrote:
Hello, everyone
I have a Entity Bean with a String as PK. The String consists of the characters [0-9]and[A-Z].
My approach is to get the latest key from the DB with an ejbSelect method(select MAX(....)). Is this safe, or is it possible that I assign accidentially the same PK to 2 entitys because the PK of the first one doenst show up in the DB while generating the second key ?
Does JBoss have any sort of PK generator which I can configure ? Or can I use the auto-increment function of the Database (I want Jboss to create the tables).
Thanks for any suggestion,
Stefan
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user