mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 19:58:16 +00:00
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 @@ private SessionFactory buildSessionFactory() {
|
||||
for (String mapping : mappings) {
|
||||
cfg.addResource(mapping, Thread.currentThread().getContextClassLoader());
|
||||
}
|
||||
cfg.buildMappings();
|
||||
Iterator iter = cfg.getClassMappings();
|
||||
while (iter.hasNext()) {
|
||||
PersistentClass clazz = (PersistentClass) iter.next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user