-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Error using custom type.
PostPosted: Tue Nov 22, 2005 9:18 pm 
Beginner
Beginner

Joined: Tue Nov 15, 2005 6:56 pm
Posts: 39
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 23, 2005 7:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
See your other thread:
http://forum.hibernate.org/viewtopic.php?t=950452


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.