Re: [Hibernate] Debugging ClassCastException

2003-08-22 Thread Max Rydahl Andersen
The power that Hibernate provides is both compelling and elusive: It's clearly a better solution than using CMP. It seems to be very commonly used with EJB session beans by users in the real world. But it's elusive in that the gotchas are not well documented, and the documentation rarely states

Re: [Hibernate] Debugging ClassCastException

2003-08-18 Thread Max Rydahl Andersen
I'll guess that Hibernate tries to assign an object via setPropertyValues where the types does not match. What is the type defined in the hbm.xml and what is the code/definition of setPropertyValues ? That would make it easier to help. /max p.s. this kind of questions are for the forum - not t

[Hibernate] Debugging ClassCastException

2003-08-17 Thread Brian Topping
Hi all, I'm getting the following error and looking for experience from others on the best way to debug it: java.lang.ClassCastException at org.dentaku.modules.general.entity.ContactMetaClass4.setPropertyValues() at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyVal