aspose file tools*
The moose likes JSF and the fly likes Creating a MySQL table and Entity from Database. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Creating a MySQL table and Entity from Database." Watch "Creating a MySQL table and Entity from Database." New topic
Author

Creating a MySQL table and Entity from Database.

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82

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:




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a MySQL table and Entity from Database.