Why Tomcat support Hibernate?

225 views Asked by At

Why Tomcat support Hibernate? Hibernate is implementation of JPA, but Tomcat doesn't support Java EE. So why we can use Hibernate in Tomcat?

1

There are 1 answers

3
Frank Pavageau On

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.