I'm here in a direct sleeping camp.
Think about how likely it is that your intention is to change your database from, say, DB2 to oracle, and it's about the same as switching from Hibernate to Toplink or eclipse, it just doesn't happen that often. This is the oldest thing that programmers just love to do, and this is an abstraction of any material so that at some unforeseen moment in 10 years they can choose to use a different set of tools for logging, and what not.
I'm sure people who really want the independence of a JPA provider, but I'm not one of them. This does not mean that Toplink or eclipse are not good, I just do not think that you can use a product that is complex and not connected (even inadvertently) with it in any way.
Having said that I still adhere to the documentation recommendations in sleep mode and use JPA annotations and resort to using sleep mode only when I need it, I'm not quite sure if there is a technical reason for this, but it wonβt hurt.
Gareth davis
source share