ClassCastException « Oracle « JPA Q&A





1. ClassCastException with oracle.sql.STRUCT in nullSafeGet()    forum.hibernate.org

I've written an own type for Oracle Spatial data but there is a problem right now when Hibernate wants to load the object which contains this own type. There is a ClassCastException been thrown within the nullSafeGet() function of my own type. I do a: Object object = rs.getObject(names[0]); Afterwards do a: System.out.println(object.getClass().getName()); System.out.println(object); for debugging reasons and the first System.out.println() ...