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:
parent
19e9a408c2
commit
222e0937c5
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue