Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hibernate id generator type

843859Nov 25 2005 — edited Nov 25 2005
i have a table where the primary key is not auto-generated..it is determined by the user

the data is :
ASK-100
ASK-200
PLE-100

how do i map this in the hibernate.xml file?

is it:
<id name="flexCode" column="FLEX_CODE" type="string">
    <generator class="native"/>
</id>
??





I was wondering if anyone would know the generator class i need to use for the folowingf
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2005
Added on Nov 25 2005
2 comments
208 views