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: Flow of Hibernate
PostPosted: Wed Jul 09, 2008 12:15 pm 
Newbie

Joined: Wed Jul 09, 2008 11:58 am
Posts: 1
I am new to hibernate, and I was wondering if anyone knew of any diagrams or tutorials that explain the hibernate process of storing data to a database.

Something along the lines of:
1. User clicks save
2. Data is saved to Java variables
3. Hibernate is invoked by ... ?
4. Hibernate checks the Classname.hbm.xml file for the object mapping
5. Hibernate makes a call to the configured database (configured in hibernate.cfg.xml)
6. Hibernate returns ... ?

...

I have looked around, but my searches have not turned up anything as of yet. If you could, please provide a helpful link or modify the guess of a process above.

Any help you can provide is greatly appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 5:11 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Here's a little tutorial I put together that tries to explain how Hibernate works, and to a certain extent, what is going on under the covers:

http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=07howhibernateworks

Give it a read, and see if it can generate any more specific questions.

If you want, you can always download the Hibernate source and simply step through the code. Of course, sometimes that fine grained a knowledge isn't always helpful.

Concentrate on what's important, learn how Hibernate works, and then start employing this powerful ORM tool!

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.