facebook

Postgresql generater problems

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

    Ed ross
    Member

    I’ve just started using hibernate and my eclipse, ans so far I very much like what I see.

    There are two problems I’ve notices in the generated hbm.xml files that make the generated code a problem

    1 – If you are using a postgre sequence, the code should pick up the sequence ID table for the sequence.

    e.g.
    <generator class=”sequence”>
    <param name=”sequence”>ss1.family_id_seq</param>
    </generator>

    2 – If you are logged on as one person, but use a different schema, the generated code will not work. You need to add the schema attribute in the table definition.

    thx

    #220992 Reply

    Riyad Kalla
    Member

    I’ve asked our Hibernate dev to look into this, thank you.

    #220996 Reply

    support-jeff
    Member

    Support for vendor-specifics in the Hibernate generation is not supported at this time. There will be enhancements in the future that allow more control over these kinds of issues. Sorry, but you just gotta wait! It will be worth it!

    For now, just make the changes manually (as you have) and beware that re-generation of mappings will drop those changes.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Postgresql generater problems

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