-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Primary key in hibernate
PostPosted: Tue Dec 23, 2008 7:34 am 
Newbie

Joined: Mon Jun 30, 2008 8:12 am
Posts: 12
Dear All,
I put more times in our discussion the below question but sill no body give the solution.

I would like to set the primary key for the following:

2,4,6,8,10

Please tell me atleast is it possible in hiberate!!!!!

regards
arul


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2008 9:44 am 
Newbie

Joined: Tue Aug 19, 2008 9:30 am
Posts: 10
Quote:
I would like to set the primary key for the following:
2,4,6,8,10

It is not clear, what you mean.
2,4,6,8,10 is ambiguous/not syntactical correct. Do you want to set an ID for a List of Integer?(which would be possible)
Or do you want to set one of this Integers as an ID for an Entity instance?(which would be possible)

Maybe this link to the id-attribute will help you.


Top
 Profile  
 
 Post subject: how set the ID in hibernate
PostPosted: Wed Dec 24, 2008 3:11 am 
Newbie

Joined: Mon Jun 30, 2008 8:12 am
Posts: 12
Dear All,



1. I want to set an ID in hibernate for below mentioned:

2,4,,6,8,10,........
1,3,5,7,9,...........

2. if i want to set the id starts from 101 means what can i do ?

Please help me!!!!

regards
arul


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.