facebook

JPA Autogeneration

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #282516 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 has auto-incremented primary key?

    
    @Id
    @GeneratedValue(strategy=AUTO)

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

    Thanks in advance for the reply.

    #287241 Reply

    Riyad Kalla
    Member

    We do auto-detect that for a few select databases right now (MySQL and H2) but for the other databases you need to set it manually for now. We will enhance the auto-detection over time; sorry for the trouble.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JPA Autogeneration

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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