facebook

JPA Hibernate Auto Generated Entities

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

    Installation Details is as follows

    *** Date:
    Wednesday, March 5, 2008 2:24:10 PM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.6.0_04

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Project SDK

    Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO
    Build id: I20070625-1500

    Eclipse Platform

    Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
    Build id: M20070921-1145

    Eclipse RCP

    Version: 3.3.1.R33x_r20070802-8y8eE8sEV3Fz0z0GlHJrXvTAUS
    Build id: I20070625-1500

    Eclipse Plug-in Development Environment

    Version: 3.3.1.R33x_r20070802-7N7M3D1VIA_52JsDFsEC
    Build id: M20070921-1145

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\eclipse\MyEclipse.6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\eclipse\MyEclipse.6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll
    -startup
    C:\eclipse\MyEclipse.6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar
    -vm
    C:\java\jre1.6.0\bin\client\jvm.dll

    #284851 Reply

    Loyal Water
    Member

    Im sorry there is no way to automate this at the moment but are already working on this as an enhancement.

    #285571 Reply

    bhammardhi
    Member

    Hi Nipun, We have a similar kind of issue.

    Some of our db tables have identity keys and some are assigned, we would want the autogeneration facility that is provided by Myeclipse to take care of this automatically while generating the hibernate mapping files. Please let us know what version of Myeclipse should we expect this to be ready.

    –AD

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

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