Hello, I am new to hibernate, but very interested. I've started yesterday, but cannot go over one problem, could you help me please?
I have mapping for table (class ConatcBook) and there is <many-to-one/> for field client_id, which is foreign key to table on which, I have already defined mapping (class Client), so I set class="Client". But when I want to work with ContactBook, I get IllegalArgumentexception and I can't go over. Nothing at google. :-(
2005-05-09 10:08:48,508 ERROR [main] (BasicPropertyAccessor.java:62) - IllegalArgumentException in class: cz.oldanygroup.sigo.addressbook.ContactBook, setter method of property: clientId
2005-05-09 10:08:48,509 ERROR [main] (BasicPropertyAccessor.java:66) - expected type: int, actual value: cz.oldanygroup.sigo.client.Client$$EnhancerByCGLIB$$92cf912
Thanks for your hints?
--ogee
|