HHH-7205: Added test to show bug exists when execute session.get after session.load for not-existing entity
This commit is contained in:
parent
bfd63f1fec
commit
a1ea2deb7d
|
@ -87,5 +87,19 @@ public class LoaderTest extends BaseCoreFunctionalTestCase {
|
|||
s.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetNotExisting() {
|
||||
Session s = openSession();
|
||||
|
||||
try {
|
||||
long notExistingId = 3l;
|
||||
s.load( Team.class, notExistingId );
|
||||
s.get( Team.class, notExistingId );
|
||||
}
|
||||
finally {
|
||||
s.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue