Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Creating a MySQL table and Entity from Database.

 
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:




 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic