- This topic has 1 reply, 2 voices, and was last updated 16 years, 6 months ago by Riyad Kalla.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
panickertMemberHello,
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?
[b]@Id @GeneratedValue(strategy=AUTO)[/b]
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
Riyad KallaMemberNOTE: For some reason the original reply to this thread was lost, reposting answer.
Auto-incrementing PKs are not currently auto-detected by the rev-eng process, but they can be set on the 3rd page of the rev-eng wizard or set manually as you showed above.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)