-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem w/ hibernate association.
PostPosted: Sun Aug 26, 2007 4:55 am 
Newbie

Joined: Thu Aug 23, 2007 8:55 pm
Posts: 3
Good day,

I'm developing a web service application using java and sun appserver that connects to oracle database. I have 2 tables in my db, member_info and member_fingerprint table.

I'm experiencing some problems using the association of hibernate w/ my setup tables. When i try to save a member_info, the execution goes perfectly but when i try to save a member_fingerprint using the association, my program throws an exception:

java.lang.ClassCastException: entity.Member_Fingerprint

after scanning the logs in the appserver, i found some warnings


[#|2007-08-26T16:06:03.000+0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=29;|16:06:03,000 WARN RootClass:210 - composite-id class does not override equals(): entity.Member_Fingerprint
|#]

[#|2007-08-26T16:06:03.000+0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=29;|16:06:03,000 WARN RootClass:215 - composite-id class does not override hashCode(): entity.Member_Fingerprint

what could possibly the error causing not to override my composite-id class.

Any help is highly appreciated.


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

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.