-->
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: "Cannot extend unmapped class" exception in hbm2dd
PostPosted: Thu Jan 03, 2008 11:50 am 
Beginner
Beginner

Joined: Fri Sep 28, 2007 9:50 pm
Posts: 34
I’m trying to use the hbm2ddl nant task to generate my database schema, however I’m running into a problem where this exception is being thrown:
Code:
NHibernate.MappingException: Cannot extend unmapped class
I found two JIRA issues concerning this problem: NH-952 and NH-652. They say its been fixed, but perhaps the hbm2ddl nant task needs to be somehow updated?

I tried reordering my mapping files by renaming them so the classes higher in the class hierarchy occur first alphabetically. But this didn’t have any effect. I think I also need to pass skipOrdering=true to the Configuration.AddAssembly method. How can I do that via the hbm2ddl nant build file?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 03, 2008 1:29 pm 
Beginner
Beginner

Joined: Fri Sep 28, 2007 9:50 pm
Posts: 34
Just now I upgraded from NHibernate version 1.2.0.GA to the latest version which is 1.2.1.GA. The problem is now gone. Oops... guess I should have upgraded earlier.


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.