[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3012) Exception at org.hibernate.type.ClassType.toString(ClassType.java:43)

Diego Pires Plentz (JIRA) noreply at atlassian.com
Thu Dec 13 04:40:56 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: 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