Hey,
So I've performed a select query on one table and by its association hibernate does internally a join from CustomerT to CountryT (Many-to-one in this case).
When I'm printing it I get this fault:
Code:
java.lang.ClassCastException: net.sf.hibernate.CountryT
at net.sf.hibernate.TestCountryStore.joinCustomerorderCustomerorderlines(TestCountryStore.java:146)
at net.sf.hibernate.TestCountryStore.menu(TestCountryStore.java:63)
at net.sf.hibernate.TestCountryStore.main(TestCountryStore.java:212)
Exception in thread "main"
Do I have to do something special with CountryT when I iterate the result?
Best regards
Newman