ID field req unique....

Hi frnds ....is id field is required to unique for that table...please any one have idea then reply me...thanx in advance..PanDev84
[166 byte] By [pandev84a] at [2007-11-27 6:33:27]
# 1
Where is the question? Do you want to know if an ID field ought to be unique inside the table? Then yes, an ID field should be always unique inside the table. Otherwise you shouldn't call it "ID field".
BalusCa at 2007-7-12 17:59:20 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
hello frnd..if i don't have any id field in table..then how can i manage it in hibernate?beacuse id is required tag in xml mapping file..it can't be blank..please give me solution...thanx and regards Pandev84
pandev84a at 2007-7-12 17:59:20 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
If you don't have a single table identifier (primary key for example?), you can use composite-id instead. Also see the Hibernate Reference Documentation.
BalusCa at 2007-7-12 17:59:20 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...