Fix unit test by adding necessary Configuration.buildMappings() call, otherwise cache strategy is not set correctly in entity.

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20283 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Galder Zamarreno 2010-08-31 08:29:12 +00:00
parent 19e9a408c2
commit 222e0937c5
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ public class JBossStandaloneJtaExampleTest extends TestCase {
for (String mapping : mappings) { for (String mapping : mappings) {
cfg.addResource(mapping, Thread.currentThread().getContextClassLoader()); cfg.addResource(mapping, Thread.currentThread().getContextClassLoader());
} }
cfg.buildMappings();
Iterator iter = cfg.getClassMappings(); Iterator iter = cfg.getClassMappings();
while (iter.hasNext()) { while (iter.hasNext()) {
PersistentClass clazz = (PersistentClass) iter.next(); PersistentClass clazz = (PersistentClass) iter.next();