We 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 Workbench
Version: 4.1.1 GA
Build id: 20060309-4.1.1-GA
*** Eclipse details:
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435
Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435
Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435
Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435
Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435
Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435
Eclipse 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