File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/test/java/org/hibernate/test/stats Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public void testCollectionFetchVsLoad() throws Exception {
111
111
coll .setFetchStyle ( FetchStyle .JOIN );
112
112
// TODO: Is there a way to set this on the metamodel?
113
113
// coll.setLazy(false);
114
- SessionFactory sf = configuration (). buildSessionFactory ();
114
+ SessionFactory sf = sessionFactory ();
115
115
stats = sf .getStatistics ();
116
116
stats .clear ();
117
117
stats .setStatisticsEnabled (true );
@@ -135,7 +135,7 @@ public void testCollectionFetchVsLoad() throws Exception {
135
135
coll .setFetchStyle ( FetchStyle .SELECT );
136
136
// TODO: Is there a way to set this on the metamodel?
137
137
// coll.setLazy(false);
138
- sf = configuration (). buildSessionFactory ();
138
+ sf = sessionFactory ();
139
139
stats = sf .getStatistics ();
140
140
stats .clear ();
141
141
stats .setStatisticsEnabled (true );
You can’t perform that action at this time.
0 commit comments