-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: IllegalArgumentException while calling setter
PostPosted: Mon May 09, 2005 4:50 am 
Newbie

Joined: Mon May 09, 2005 4:40 am
Posts: 2
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


Top
 Profile  
 
 Post subject: Version
PostPosted: Mon May 09, 2005 4:59 am 
Newbie

Joined: Mon May 09, 2005 4:40 am
Posts: 2
I am using version 3.0.2.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 9:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Sounds simple enough.

ContactBook.clientId is exposed as an int. However, you try to map it such that a Client is the property type.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.