Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Newbie !!!!

 
s mahen perera
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ! Can somebody tell what is the quickest way to learn Hibernate. I have worked with J2EE for abt 1 year now,,, and want to learn hibernate ,, pls let me know the resources to learn hibernate .


Thanks in advance

Mahen
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the documentation and explore some of the demo apps. Its also a good idea to make sure you understand why you might need to use an ORM. The first few chapters of Hibernate In Action are summary of this.
 
s mahen perera
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks paul
 
Pj Murray
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I suggest that the fastest way to get started with Hibernate is to generate the Hibernate persistence classes/mappings (rather than manually write it)?


FireStorm/DAO can now also generate native persistence code for Hibernate, with the option of using the DAO design pattern.

When generating Hibernate code (without DAOs), FireStorm/DAO produces Hibernate persistent classses and a Hibernate mapping file (*.hbm.xml) for each database table.

You can read more here:

http://www.codefutures.com/hibernate

and you can download here:

http://www.codefutures.com/products/firestorm/download/
 
Satish Talim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by s mahen perera:
Hi ! Can somebody tell what is the quickest way to learn Hibernate. I have worked with J2EE for abt 1 year now,,, and want to learn hibernate ,, pls let me know the resources to learn hibernate .
Mahen

I had written an article to quickly get started on Hibernate for java.net. If interested, email me and I will send you the pdf file of this article.
 
J Abraham
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Satish,

i am a Java Developer,started learning Hibernate.As i am a newbie to Hibernate,i think your article would help me.can you send me your article which is in the PDF format to jibin999@gmail.com .Also can you suggest me the best book to start learning Hibernate.

Thanx in Advance.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satish Talim:

I had written an article to quickly get started on Hibernate for java.net. If interested, email me and I will send you the pdf file of this article.


Why not just post a link to it, if it is on java.net
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by PJ Murray:
Can I suggest that the fastest way to get started with Hibernate is to generate the Hibernate persistence classes/mappings (rather than manually write it)?




Isn't that like telling someone the best way to learn Java is to use an IDE that generates a bunch of code for you? Manually writing all your mapping files is the only way you are truly going to understand what the heck you are doing, IMO. Once you know how to write them, that is when you will have no need to write them and can generate them via tools like XDoclet.
 
J Abraham
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Satish,

Thanx for u r mail.i am just going the link that u mailed me.
 
Pj Murray
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:




Isn't that like telling someone the best way to learn Java is to use an IDE that generates a bunch of code for you? Manually writing all your mapping files is the only way you are truly going to understand what the heck you are doing, IMO.



Sorry - maybe I was not clear. If you've no idea how to write Hibernate persistent classes and Hibernate mapping files then you could find out what the code should look like using a code generator. It can be quite an useful learning tool - change the database, regenerate the code, look at the knock on effects, etc

Of course it's always better to understand the underlying principles - and in fact it's still useful even if you always want to use a code generator (so you know how to customize).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic