This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am having an object called Customer, It will have a relationship with address object (one-to-one relation) and Tickets object (one-to-many relation). [Each customer can have many tickets]. And Each ticket will have a payment object (One-to-one relation). I specified the relation in hibernate annotation.
I am getting the below error when executing the test,
My Application code is
My objects, Customer :
Hibernate Configuration is :
Where am i wrong in this code ?
Joined: Jun 07, 2011
I found the answer, The mistake is on the below line of Payment POJO.