This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Entity Bean UID/GUID primary key creation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Entity Bean UID/GUID primary key creation?" Watch "Entity Bean UID/GUID primary key creation?" New topic
Author

Entity Bean UID/GUID primary key creation?

Peter Daly
Greenhorn

Joined: Jan 04, 2002
Posts: 17
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity Bean UID/GUID primary key creation?
 
Similar Threads
PrimaryKey Class
Can some one help me with Entity Beans
unable to load the class
How we make Entity bean as Database independent
How to create Entity Bean without a Primary Key class