• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a MySQL table and Entity from Database.

 
James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Topic
The topic of this question is: Creating a MySQL table and Entity from Database.

[icode]
Hello and Thank you in advance for any assistance.
[/icode]



Purpose:



This is another attempt to render data in a visual web javaserver faces table.
The purpose of this code is to create a MySQL table that will use an auto incremented id and then create an Entity from the database that is able to use this id.




Question:



My question concerning this code is the table deploys and the headers are correct based on the content table but why isn’t the data generating.




Functionality:



The actual functionality of this code is based on the tutorial at
[url]
http://www.netbeans.org/kb/60/web/web-jpa.html#03
[/url]
and it seems to be constructed the same.






errors:



The errors related to this code is that I am assuming that there is a problem with the generated id in the class. Is this possible?







Description



Code description: content table MySQL






Description



Code description :Content.java @Entity class generated from database








Description



Code description:persistence.xml






Description



Code description ContentController.java








Thanks again.
-ceyesuma





Solution:



The solutions related to this code are





Note:



Note:




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic