Announcement Announcement Module
Collapse
No announcement yet.
Class name with 2 sequence Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment

    Working...
    X