Reputation: 20591
Why Tomcat support Hibernate? Hibernate is implementation of JPA, but Tomcat doesn't support Java EE. So why we can use Hibernate in Tomcat?
Upvotes: 0
Views: 235
Reputation: 11735
Tomcat doesn't provide Java EE support (meaning it doesn't contain implementations of the various parts of Java EE, except for the servlet part, obviously), but that doesn't mean it cannot run code like Hibernate that does provide the implementation of JPA and doesn't have other Java EE dependencies that cannot be met by either Tomcat itself or other libraries.
Upvotes: 5