TargetTalk

A forum to talk about Olympic style shooting, rifle or pistol, 10 meters to 50 meters, and whatever is in between. Hosted by Pilkguns.com
It is currently Tue Nov 21, 2017 10:32 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jan 02, 2012 6:37 am 
Offline

Joined: Mon Jan 02, 2012 6:31 am
Posts: 2
How do you define sequence generated primary key in hibernate?

Using <generator> tag.



Example:-

<id column=”USER_ID” name=”id” type=”java.lang.Long”>

<generator class=”sequence”>

<param name=”table”>SEQUENCE_NAME</param>

<generator>

</id> <a href="http://candidjava.com/hibernate-interview-question"></a>


Last edited by candidjava on Mon Jan 02, 2012 8:34 am, edited 3 times in total.

Top
 Profile  
 
PostPosted: Mon Jan 02, 2012 6:38 am 
Offline

Joined: Mon Jan 02, 2012 6:31 am
Posts: 2
More Hibernate Interview Questionhttp://candidjava.com/hibernate-interview-question


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group