ClassCastException « Property « JPA Q&A





1. ClassCastException with property-ref    forum.hibernate.org

Hello, We are having a problem with a one-to-many mapping using property-ref. We are getting a ClassCastException because the type of the property-ref column is not the same as the type of the PK. It looks to be a known issue from googling. Any insight on a workaround or a better way to do this mapping would be appreciated. Background: - ...

2. ClassCastException setting property value with CGL    forum.hibernate.org

hi, I get the following exception with hibernate 2.0: ClassCastException exception setting property value with CGLIB setter of com.cpusoftwarelab.c6.app.vo.LebenshaltungskostentabelleVO.? I tried to isolate the problem and reduced my code but the exception remains. Can someone help me ? I use a CompositeUserType com.cpusoftwarelab.c6.app.vo.C6Betrag and this works in some other classes (see AuszahlungVO), but in my class com.cpusoftwarelab.c6.app.vo.LebenshaltungskostentabelleVO I can create an ...