List of usage examples for org.hibernate.collection.internal PersistentBag PersistentBag
@SuppressWarnings("UnusedDeclaration") public PersistentBag()
From source file:org.ligoj.bootstrap.TestAbstractJpaTest.java
License:MIT License
@Test void isLazyInitializedFalse() { Assertions.assertFalse(super.isLazyInitialized(new PersistentBag())); }
From source file:org.ligoj.bootstrap.TestAbstractJpaTest.java
License:MIT License
@Test void isLazyInitializedTrue() { final PersistentBag bag = new PersistentBag() { private static final long serialVersionUID = 1L; {//from w w w. j av a2s. c o m setInitialized(); } }; Assertions.assertTrue(super.isLazyInitialized(bag)); }