[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3012) Exception at org.hibernate.type.ClassType.toString(ClassType.java:43)
kinfei (JIRA)
noreply at atlassian.com
Wed Dec 12 22:49:56 EST 2007
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
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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list