Hibernate

Joined
Oct 9, 2007
Messages
1
Reaction score
0
Hi,

Can any one help me to with ...
How to create a primary key in hibernate , without allowing hibernate to create by itself using <generator class="increment">.
I wanted to create a primary key manually(without auto increments),might be using <generator class="assigned"> and mapping those with another tables as foreign key.
a sample code will be helpful
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top