• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

made easy, hibernate?

 
Juan Rolando Prieur-Reza
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
McKenzie,

Can your book clear up something for me? I am very comfortable with JEE5 and EJB annotations. But recently, I was asked to use hibernate for a certain project. I have read that hibernate uses the same annotations as EJB 3.0. But when I look for examples, and when I look through tutorials, the annotations look very strange. Also, it looks to me like hibernate has a lot more "stuff" in it than EJB 3.0. So, I'm wondering why it's supposed to be easier to use? For that matter, why has it been necessary for so many different approaches to "making hibernate easy to use" if hibernate is supposed to be easy to use? I have found EJB 3.0 easy to use.
Thanks in advance.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think EJB 3.0 has demonstrated 'leaps and bounds' improvements over EJB 2.x, and I would agree that EJB 3.0 is much easier to use. If you're committed to EJB 3.0, I say go for it!

I work with alot of IBM professionals, and IBM won't likely support EJB 3.0 in a full production release anytime in the near future. And customers are frustrated with EJBs and Entity Beans. So, what do they do? Many are going with Hibernate. Hibernate can run well within an EJB container, within a web container, or even stand-alone without any container at all. Those are pretty compelling features, for sure.

If you have found EJB 3.0 easy to use, I think you'll find working with Hibernate and JPA annotations equally attractive. One of the problems I've found is that there was a real lack of simple books that provided clear explainations of how Hibernate works, and how Hibernate could be easily integrated into a Java application. That's the space that this particular book tries to fill, and I like to think that it does a pretty good job.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic