users@glassfish.java.net

Re: pb autogenerate database

From: <glassfish_at_javadesktop.org>
Date: Fri, 03 Oct 2008 05:41:24 PDT

thanks for your reply,


i don't use the id column as the pk because I the combinaison of PKdetermine a unique user.
for example a personn:

name,surname and birthday are PK determine a unique personn.


if i use id as the PK,if i insert again the same information,i duplicate my data.But i want aunique data.I can test with different request but it 's stupid cause PK are a good tool to control duplicate entry

thanks
[Message sent by forum member 'pfhuillet' (pfhuillet)]

http://forums.java.net/jive/thread.jspa?messageID=303151