The name of this file is table_autoincrementedId
Hello and Thank you in advance for any assistance.
The project is a Visual web JavaServerFaces project that is in the same folder and that imports the app library. Modeled after the tutorial at
Using Java Persistence API Within a Visual Web JSF Application
The purpose of this code is to populate a JSP table from a MySQL table content (a auto-incremented set of records) using@Entity, entity controller and a persistence unit.
My question concerning this code is that I am not sure if the @Entity class is getting the Id because the table is bound to the database and displaying the Column names but no data.
There are no errors related to this code are .
Code description: @Entity class. Some column getters,setters omitted.
Code description:Content.java As I was preparing this question I noticed this class and will have to look at it to understand if the @Id and @GeneratedValue(strategy = GenerationType.IDENTITY) belong here.