Example usage for org.hibernate.collection.internal PersistentBag PersistentBag

List of usage examples for org.hibernate.collection.internal PersistentBag PersistentBag

Introduction

In this page you can find the example usage for org.hibernate.collection.internal PersistentBag PersistentBag.

Prototype

@SuppressWarnings("UnusedDeclaration")
public PersistentBag() 

Source Link

Document

Constructs a PersistentBag.

Usage

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));
}