facebook

exclude autoincrement in hibernate

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #270296 Reply

    rateoty
    Member

    hello,

    I’m new to hibernate, so this question might have been asked before and I just didn’t find it in searching the forum.

    I have some tables with autoincrement columns as primary keys, named id. After hibernate reverse engineering these fields are used in the constructors of the generated classes. As far as I understand, this should lead to new objects with an id set which would not work for an insert of the data into the table.

    Is there a way to exclude those fields, which map to autoincrement columns, from being used as paramers in the generated constructors?

    regards Jürgen

    #270298 Reply

    rateoty
    Member

    hello,

    sorry, I just wasn’t thoroughly searching – native for the id generation was what I’ve been missing..

    regards Jürgen

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: exclude autoincrement in hibernate

You must be logged in to post in the forum log in