Advanced Hibernate training Pt. II
Published by peter March 15th, 2007 in java.Today the training continued, full speed ahead. We covered some really handy topics like:
- Queries, Criteria API, Filters
- Application design with Hibernate
- Performance tuning
- Deployment
- Caching
I found it quite usefull to have an in-depth view on the way the second level cache (and thus query cache) work. Application design was primarely focussed on using EJB3 for what we call the service tier; the Hibernate guys REALLY don’t like Spring.
I put forward some of the concepts we used in the current model, and the primary advice was: don’t go wild on inheritance… it will be far more difficult to tune for good performance then a ‘flatter’ model would. Instead of using a persistent supertype Chris would prefer to use interfaces and a composite object holding the shared values; much easier to use… I have to think about that.




















>> the Hibernate guys REALLY don’t like Spring
It is probably more something like: Christian Bauer does not like Spring. Gavin King probably does not care.
You’re probably right. I must say, I really do like working with Spring in most cases… and am not considering throwing it out at the moment!