-->
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.  [ 4 posts ] 
Author Message
 Post subject: hbm2java is emitting a Warning: Could not find UserType
PostPosted: Fri Sep 03, 2004 11:07 am 
Newbie

Joined: Fri Sep 03, 2004 10:53 am
Posts: 7
Folks, when I generate my java classes from the HBM files, I get this irritating warning:

net.sf.hibernate.tool.hbm2java.ClassMapping getTypeForUserType
WARNING: Could not find UserType: de.xcom.emv.hibernate.ImportData. Using the type 'de.xcom.emv.hibernate.ImportData' directly instead. (java.lang.ClassNotFoundException: de.xcom.emv.hibernate.ImportData)

Why is this happening? I don't use any UserTypes.
Also the ImportData class has nothing unusual (i.e. nothing I don't use in other HBM files) in its HBM file. Similarily, it is used in various mappings just like many of the other classes.

Please note: the warning has no effect on the correctness of my code.
Hibernate version: 2.1.6

Thanks,
Jonathan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 11:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hbm2java don't know if the class really is a usertype or not if it cannot load it and investigate. Thus it emits a warning just so IFF you really wanted it to be steered by the usertype you would get the info.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 6:14 am 
Newbie

Joined: Fri Sep 03, 2004 10:53 am
Posts: 7
Max, answer accepted. But why does it happen here, and not for other tables. I am passing all my hbm.xml files to hbm2java. I even have a case of a Document has multiple Versions. A Version belongs to a Document, and the Document table has a reference to the latest Version. I have checked the class names, but that's not it.

Ah well, I guess I'll live with it!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 7:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - but is the warning not from a simple <property> and the others are <many-to-one>'s ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.