Hi,
I have a entity 'User' that represent the system users, where every user possesses the only identifier 'userId'.
Which of the following options is correct?
A) Define the column 'userId' as id with generator = assigned.
B) Add to table a column 'id' and to define it as id with generator = native and define the property 'userId' as unique. What happens if the identification is formed by more than one column?
Thanks.
Hibernate version:
2.1
Mapping documents:
--
Code between sessionFactory.openSession() and session.close():
--
Full stack trace of any exception that occurs:
--
Name and version of the database you are using:
MySql Ver 11.18 Distrib 3.23.58
The generated SQL (show_sql=true):
--
Debug level Hibernate log excerpt:
--
|