Thread:
 getAllClassMetadata() Map key change 
 pmularien   29 Nov 2005, 14:23 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: pmularien (29 Nov 2005, 14:23) Replies: 0, Views: 28605
Subject: getAllClassMetadata() Map key change
The Javadoc notes it, but this Wiki doc does not. The Map contents for
SessionFactory.getAllClassMetadata() changed from being keyed by Class
to being keyed by String. If you rely on this you may see
ClassCastExceptions or you may not find expected values in the Map
because you are looking using the wrong kind of key. 

From the Javadoc:

"Since:
3.0 changed key from Class to String"
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]