]
Diego Pires Plentz resolved HHH-3012.
-------------------------------------
Assignee: Diego Pires Plentz
Resolution: Rejected
Exception at
org.hibernate.type.ClassType.toString(ClassType.java:43)
---------------------------------------------------------------------
Key: HHH-3012
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3012
Project: Hibernate3
Issue Type: Bug
Environment: hibernate 3.2, mysql
Reporter: kinfei
Assignee: Diego Pires Plentz
Exception in thread "main" java.lang.ClassCastException: java.lang.String
cannot be cast to java.lang.Class
at org.hibernate.type.ClassType.toString(ClassType.java:43)
mapping property ->
<property
name="entityClass"
column="ENTITY_CLASS"
type="java.lang.Class"
length="50"
not-null="true"
/>
is it needed to replace this
public String toString(Object value) throws HibernateException {
return ( (Class) value ).getName();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: