I'm getting an exception when using a custom type in my hibernate.hbm.xml file. I'm using a custom exporter. Specifically, I get this error:
Code:
[hibernatetool] SEVERE: Method get threw exception for reference $templates in template pojo/Pojo.vm at [10,1]
I looked at the calls being made as the custom exporter is being run and noticed that the exception is thrown in Cfg2JavaTool.java class in this method:
Code:
private String getJavaTypeName(Value value, boolean preferRawTypeNames)
Specifically, when this line of code is run:
Code:
return toName( type.getReturnedClass() );
I wrote some debug code and found that type.getName() returns the right name for my class. It's just the type.getReturnedClass() call that throws an exception.
Any Ideas. Remember, the type here is a custom type that is not a hibernate pojo. It's a class compiled outside of the hibernate world.
Thanks.