- This topic has 3 replies, 4 voices, and was last updated 14 years, 8 months ago by support-shalini.
-
AuthorPosts
-
dennisrjohnMemberWe are using sequence generators in our databse tables, so our hibernate mappings look as such:
<id name=”personid” type=”long”>
<column name=”PERSONID” precision=”38″ scale=”0″ />
<generator class=”sequence”>
<param name=”sequence”>SeqPersonID</param>
</generator>
</id>In the hibernate wizard you can specify “sequence” as the generator type, but you can’t specify a sequence name, so every time we regenerate tables we have to manually enter all of the sequence names. I know that hibernate.reveng.xml supports entering the sequence name as such:
<table name=”PERSON”>
<primary-key>
<generator class=”sequence”>
<param name=”sequence”>SeqPersonID</param>
</generator>
<column name=”PERSONID”/>
</primary-key>
</table>but it seems that MyEclipse ignores this, and still gives me a sequence generator without a <param name=”sequence”> entry. Am I missing something, or is there a better way to do this with templates?
This is becoming rather painful.
*** Date: Mon Aug 07 16:31:00 MDT 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.1.1 GA
Build id: 20060309-4.1.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse startup command=-data
C:\eclipse\workspaces\Frappier
-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
11c_74
-vm
C:\product\10.1.3.1\OracleAS_2\jdk\bin\javaw.exe
Haris PecoMemberDennis,
You are correct.MyEclipse doesn’t support parameter for sequence generator.We will add it in future releases and you can try change templates for now.There are new templates for version 5.0
Best regards
Peco
Vishal kumar SinghParticipantin which version we can get this facility
support-shaliniMemberVishal,
There is an existing PR for this issue and the dev team is working on it. -
AuthorPosts