Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Hibernate with Spring

 
Connie Irwin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I haven't had a chance to browse through your book, but I was wondering if you touch on using Spring with Hibernate. Also, I was wondering if you have discovered any mapping solutions for concatenated database columns, e.g. "select (SC_TYPE||' '||SC_DESCRIPTION) from some_table". I found that not defining a property or column for the combined sql column will work, otherwise, an Oracle sql error, "Invalid identifier" occurs. Also, I am not sure if this is an Oracle only function, or if the syntax differs from database to database.

Sincerely,

Javawannabe2005
 
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
For the most part, the book tries to be database agnostic, so any database specific information is relegated to that database's reference manual.

As far as Spring goes, I very intentionally did not include chapters on Spring in the book.

When I look at the reviews of many of the Hibernate books on Amazon, I see a very common thread, where people say they were overwhelmed by all of the material a given book produced. I really wanted to avoid that, and stay true to the topic of Hibernate. By going into topics such as Spring or JSF or Seam, I think it tends to take the focus away from the real core objective of the book, and that is to help people understand Hibernate, and really get a good understanding of how to properly leverage the Hibernate framework in their applications. I also think that this is what the reader wants when they pick up a book like this.

But beyond trying to help focus the reader and help them concentrate on learning the fundamentals of Hibernate, what I do find on my own projects is that when people understand Hibernate, and I mean really understand it, they find the integrating it into Spring or JSF or Seam or GWT is very natural and easy. Configuration and integration problems happen when people don't really understand how Hibernate works, and instead, just use it to get it "to do something they want it to do." If you really understand Hibernate, which is what this book will teach you, integrating with Spring will be much easier, you will encounter fewer problems, and when problems do arise, you'll have the Hibernate skills and Java knowledge to solve those problems quickly an intelligently.

-Cameron McKenzie
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cameroon,

I like you idea of just concentrating on Hibernate in the book. For someone who does not work with Spring would not feel that chapters being wasted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic