 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Postgresql generater problems
Posted: Dec 14, 2004 - 11:31 AM
|
|
Registered Member


Joined: Oct 24, 2004
Posts: 59
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 14, 2004 - 04:41 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
I've asked our Hibernate dev to look into this, thank you. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 14, 2004 - 05:02 PM
|
|
Moderator


Joined: Jul 18, 2004
Posts: 357
|
|
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. |
_________________ jeff
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |