Results 1 to 2 of 2

Thread: Class name with 2 sequence

  1. #1

    Default 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. #2

    Default

    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
  •