What are the advantages and disadvantages of Hibernate & EJB3 relative to each other?
I found this post, but it didn\'t really address my question. If I don\'t have
JPA provides a subset of Hibernate functionality, but EJB3 provides other services that Hibernate does not address (e.g. Web services, EJBs, Timer service)
JPA offers the following benefits compared to Hibernate:
Hibernate offers the following benefits:
What you can do is write your application in EJB using JPA and then when necessary use Hibernate-specific features. Or just use plain Hibernate for persistence if you don't care about standardization and vendor lock-in. Realistically, it's unlikely you will switch between Hibernate and another provider, but it does happen.