-
Oct 6th, 2009, 09:02 AM
#1
Class name with 2 sequence
<id name="countryid" column="country_id" >
<generator class="sequence">
<param name="sequence">country_s</param>
</generator>
</id>
I have that, but i also have another column in that same table countries..
which is not primary key, unlike countryid..pluis its number..and works as sequence as well
<property name="typenum" column="type_num"/>
i also want to use sequence for it, how do i write sequence for property
-
Oct 6th, 2009, 10:48 AM
#2
my question is simple, how can i do sequence for a thing which is not primarykey in hibernate
i know its not normal, i just want to implent it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules