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: Inaccurate Exception Message: Cannot find class
PostPosted: Thu Oct 12, 2006 9:29 am 
Newbie

Joined: Thu Oct 12, 2006 9:27 am
Posts: 1
Location: 127.1
When mapping relationships between .hbm.xml files (e.g. one-to-one, one-to-many) if a table does not contain any rows, NHibernate will throw an exception that it cannot find the class (even though it is certifiably in scope).

IMHO the exception should be thrown because the join cannot instantiate the class without data (aside from the fact that it's a poor reason to blow up in the first place).

$.02

_________________
"Remembering that you're going to die is the best way I know to avoid the trap that you have something to lose." - Steve Jobs


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 10:31 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Please create a simple test case and submit this as a bug report to JIRA.


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.