facebook

JPA Hibernate Auto Generated Entities

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

    panickert
    Member

    Hello,

    I am using JPA with hibernate and mysql. When the entities are generated using the JPA wizard, shouldn’t the following annotation set for entities that have auto-incremented primary key?


    @Id

    @GeneratedValue(strategy=AUTO)

    Is there any way to set this during auto generation???

    Thanks in advance for the reply.

    #283291 Reply

    Loyal Water
    Member

    This message has not been recovered.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JPA Hibernate Auto Generated Entities

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