Working on some legacy hibernate code.
How do I do the following with hbm.xml(hibernate mapping file) instead of with annotations?
@Table(name=\"user
You can add same unique-key attribute to two different columns. This will create composite unique key.
In the above example the unique key will be created from both first_name and last_name column.