MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
edross
Post subject: Postgresql generater problems  PostPosted: Dec 14, 2004 - 11:31 AM
Registered Member
Registered Member


Joined: Oct 24, 2004
Posts: 76

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Dec 14, 2004 - 04:41 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-jeff
Post subject:   PostPosted: Dec 14, 2004 - 05:02 PM
Moderator
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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits