As per IDE Log attached plus:
Server: Payara 5.2020.7
Java EE version: Java EE 8 Web
Java Platform: JDK 1.8
DB: MySQL 5.7.3
- Driver Class: com.mysql.cj.jdbc.Driver
- Tested. Connects successfully with DB.
Framework: JSF 2.3 with PrimeFaces 8.0 jarAs per IDE Log attached plus: Project Properties: Server: Payara 5.2020.7 Java EE version: Java EE 8 Web Java Platform: JDK 1.8 DB: MySQL 5.7.3 Driver: C:\Users\klaz3\Downloads\MySQL\MySQL8\Connector-J-8.0\mysql-connector-java-8.0.23.jar Driver Class: com.mysql.cj.jdbc.Driver Tested. Connects successfully with DB. Maven 3.6.3 Framework: JSF 2.3 with PrimeFaces 8.0 jar
Steps to replicate
Set up a Maven Web App as per NB 12.3 wizard.
Deploy to payara 5.2020.7: success.
Create connection pool for server; Ping: successful.
Create jdbc/datasource for pool.
Create persistence.xml; add data source and change transaction type to JTA, in persistence-unit.
Right click on project and select New Entity Classes from Database.
Tables are shown on left side of selection window.
Select all and move to selection space, right.
Click Next, click Finnish.
Assert: Entity Classes have been created in folder specified.
Actual: Classes are created in folder chosen BUT:
--Some are just a class name and empty.
--Some are properly created entity classes or PKs.
--there is no particular pattern of which are empty and which are properly created entities.
In persistence.xml this is shown as the version: <persistence version="2.1" … http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> and
Library name for persistence is (JPA 2.1).
However, in libraries under this name the library classpath is : ../javax.persistence-2.2.1.jar, which is JPA 2.2.
Library with name EclipseLink (JPA 2.1) has the new version 2.7.7 instead of the version 2.5.