facebook

hibernate.reveng.xml and sequence generators

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256283 Reply

    dennisrjohn
    Member

    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

    #256336 Reply

    Haris Peco
    Member

    Dennis,

    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

    #306357 Reply

    Vishal kumar Singh
    Participant

    in which version we can get this facility

    #306377 Reply

    Vishal,
    There is an existing PR for this issue and the dev team is working on it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: hibernate.reveng.xml and sequence generators

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