File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring Persistence with Hibernate : about the Hibernate content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Persistence with Hibernate : about the Hibernate content" Watch "Spring Persistence with Hibernate : about the Hibernate content" New topic
Author

Spring Persistence with Hibernate : about the Hibernate content

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I guess that the book is mainly focused on Spring Persistence, more than Hibernate itself (isn't it ?). How advanced is the Hibernate content ? Can you introduce some of the advanced features you are discussing in the book ?


[My Blog]
All roads lead to JavaRanch
Paul Fisher
author
Greenhorn

Joined: Jul 06, 2010
Posts: 23
Hi Christopher,

While our book is a bit more focused on the Spring framework, I think it's fair to say that we do include extensive coverage of Hibernate — especially related to advanced features required for production scenarios. For instance, we examine performance and optimization techniques for Hibernate, such as how to best avoid the common N+1 selects issue. We also examine caching strategies, illustrating a few approaches for tuning your caching strategy, as well as the pros and cons of query caching (some find it surprising that query caching can actually degrade performance!). Finally, we look at the benefits of a clustered caching strategy.

Another area that we cover that I feel is not discussed enough is handling concurrency in a Spring Hibernate application. Many people are not familiar with the different locking strategies, and when to use pessimistic vs optimistic locking (and what these strategies actually entail). We also discuss some of the Hibernate events, and how to use them in your application.

A big theme of the book is applying design patterns and best practices, and to that end, we discuss approaches for building an effective DAO and Service layer, and how to apply transactions declaratively. Of course, we include Hibernate querying strategies and domain modeling/mapping approaches throughout the book as well.

Anyway, I hope this helps to answer your question! Please let me know if you have any questions.

Thanks,

Paul

Paul Tepper Fisher
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Paul Fisher wrote:Anyway, I hope this helps to answer your question!

It does ! Thank you. It looks like there is quite some advanced topics. This all sounds very interesting.
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Paul,

...regarding optimisation and caching and other advanced topics
Christophe was asking about too. This is actually an issue I've
been confronted with in more than one project...

How would you tackle these things in a preventive fashion,
would you like have monitoring on your apps or unit tests
checking the degradation of performance?

Regards,

Gian


"Eppur si muove!"
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Gian wrote:Christofer was asking about too.

Congratulations, that's one of the worst version of my name I've ever seen (I'm joking)
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
...oops, sorry

I've refactored it...

Gian
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

Christofer

In the beginning I also used to read the name Christopher till I looked very closely ...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Brian Murphy
Author
Greenhorn

Joined: Jul 07, 2010
Posts: 8
Hey Gian,

There are a lot of tools you can use to ward off performance problems before it's too late, both open source and commercial. If you're already using continuous integration, one great approach is to bolt JMeter into the process so that you exercise your application with enough load to simulate production use. You can then pay attention to the trends of your performance runs over time with each new build.

Here's an example of Atlassian's Bamboo integration - https://studio.plugins.atlassian.com/wiki/display/JMETAGG/Bamboo+JMeter+Aggregator+Plugin

Cheers,

Brian D. Murphy
@brimurph
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Hi Brian,

Does your book cover the following topics,

1) Event/Listener model (previously called as Interceptors)
2) Filters
3) Defining custom types (Composite User types)

Thanks.


SCJP 1.5, SCEA, ICED (287,484,486)
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
And also Inheritance mapping, do your book emphasize on polymorphic associations, verbose query statements and performance capabilities.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Persistence with Hibernate : about the Hibernate content