Persistence is a key feature in the Java EE. Application servers compliant with the Java EE 7 specifications provide Java Persistence API (JPA) 2.1 implementations for it. JPA was born with Java EE 5 moving from the old Entity Beans 2.x with the goal to give standard specifications on how to persist objects inside relational databases.
There exists many JPA implementations such as EclipseLink, Oracle TopLink, OpenJPA, and Hibernate. WildFly since JBoss 4.x a is built under Hibernate.
Hibernate 5 is the community product that manages as default JPA provider the persistence in WildFly 10. Although WildFly is built with a modular architecture where you can choose the versions of the core products by configuration or automatic import of libraries, we will focus in this chapter on the default Hibernate version provided by WildFly 10.1.0. The default version is the 5.0.10...