If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > Embedded Apache Derby record guids

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-10, 15:34
donniecrump donniecrump is offline
Registered User
 
Join Date: Feb 2008
Posts: 5
Embedded Apache Derby record guids

I am working on an application that is going to run a tomcat front end and an embedded derby db back end. i need to devise a unique record identifier so i can easily import, export, and backup the db.

I don't think incremented id fields area good idea since there could be a lot of backing up, restoring, and possible merging of data.

would a good unique record id be something like ...
YYYYMMDDHHmmSSMLS

mm being minute.
MSL being millisecond.

I could create a unique field flag on the id column to make sure the ids for the table are unique. Does anyone see a problem with this?

I have done a ton of research but for this particular application I could not find a good solution. I need a unique record id that is flexible and generated by my program.

Of course there is also GUIDs.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On