This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line! See this thread for details.
I have an entity bean (CMP) I need to design which must have a primary key field generated automatically, which is independent of the data stored in the entity. I (at least for now) will be using JBoss. Is there a standard way in java to create a unique string, like GUID stuff in windows? Am I thinking about this wrong? Should I be doing something else instead? I am moving a PHP web application to J2EE, and will be loosing the auto incrementing column DB feature if I do this so it is DB independent. Thanks for any help, -Pete