-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: good tutorials
PostPosted: Sat Oct 22, 2005 8:27 am 
Beginner
Beginner

Joined: Thu Oct 20, 2005 12:35 pm
Posts: 21
Hi,

I am experimenting with the mappings, but the documentation provided doesn't answer all my questions.

Does anybody know a good tutorial on hibernate mappings ( one where they start of with a ERM - model and translate this into a mapping ). Or even better, a tool where i can just draw my ERM diagram and have the mappings generated ?

Thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 9:36 am 
Regular
Regular

Joined: Thu Oct 27, 2005 8:06 am
Posts: 55
Location: München, Germany
I learned what I needed about mappings from Hibernate in Action. Compared to the majority of books about frameworks, this is quite readable and thorough, and I enjoyed it. (I'm in no way related to the authors or the Hibernate team.)

If you download the Hibernate tools, you will find both command-line and graphical tools for generating. I prefer generating the other way round: from my Hibernate config files to DDLs and POJOs, because the Hibernate config files are easy enough, and they let you express everything you need. (If, e.g., generating Hibernate config files from the database structure, there is no way to find out about inheritance.) That way, you can be absolutely sure that the data types and mapping strategies of your cfg files, the attributes in your classes, and the data types in the database match.

I find generating a good way of reducing work and achieving consistency. However, it's not a good way to circumvent understanding the technology. As soon as the first error message appears, you will have to get familiar with cfg files anyway.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.