This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot display data from different table in database  RSS feed

 
veni fm
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code is followed [this tutorial] (http://javaknowledge.info/simple-crud-using-jsf2hibernate-integration-and-mysql/) with some additional problem.

Below is my model:

Customer.java



TipeMotor.java



hibernate.reveng.xml


Customer.hbm.xml

and something like that in TipeMotor.hbm.xml

TipeMotorDAO.java


something like that in CustomerDAO.java

and class HibernateUtil.jva

and last, here is my index



My problem is I cannot display data from table ahmdsmun_msttypeclr in SelectOneMenu with id TIPEMOTOR. How is this can be solved?
Your answer is really appreciated
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll answer in detail once you've fixed your display name.

However, I should mention that nobody gets paid to do this, so when someone dumps a long set of detailed files on the forum, most people aren't going to bother to read them, much less answer the question. Always try to trim down your samples to just the essentials. We don't need to know about every property, just how your typical property definitions are constructed. Likewise, we don't want to have to thrash through every element on your production View form, we just want to see the element(s) of your form that are causing problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!