[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1535) Mapping Diagramm doesn't work for caveatemptor-jpa
Dima Geraskov (JIRA)
jira-events at lists.jboss.org
Wed Dec 19 10:10:44 EST 2007
[ http://jira.jboss.com/jira/browse/JBIDE-1535?page=comments#action_12392913 ]
Dima Geraskov commented on JBIDE-1535:
--------------------------------------
I have class "auction.model.ItemState" in my Project.
When I ask my Property.getSimpleValue().getType() it goes to EntityType object,call ReflectHelper.classForName("auction.model.ItemState"). The code of the method:
public static Class classForName(String name) throws ClassNotFoundException {
try {
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
if ( contextClassLoader != null ) {
return contextClassLoader.loadClass(name);
}
}
catch ( Throwable t ) {
}
return Class.forName( name );
}
Why my class "auction.model.ItemState" doesn't foud???
Any ideas?
And what is more, when EntityType objects calls classForName it expects that class will be subclass of Entity.class:
String enumClassName = parameters.getProperty( ENUM );
try {
enumClass = ReflectHelper.classForName( enumClassName, this.getClass() ).<b>asSubclass( Enum.class )</b>;
}
catch (ClassNotFoundException exception) {
throw new HibernateException( "Enum class not found", exception );
}
Is this mean that class auction.model.ItemState mapped not correctly (it doesn't extends Enum) or not?
> Mapping Diagramm doesn't work for caveatemptor-jpa
> --------------------------------------------------
>
> Key: JBIDE-1535
> URL: http://jira.jboss.com/jira/browse/JBIDE-1535
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Hibernate
> Affects Versions: 2.0.0.GA
> Reporter: Dima Geraskov
> Assigned To: Dima Geraskov
> Priority: Critical
> Fix For: 2.0.1
>
> Attachments: caveatemptor-jpa.rar
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list