|
Hibernate example source code file (ReadEntityWithAuditedCollectionTest.java)
The Hibernate ReadEntityWithAuditedCollectionTest.java source codepackage org.hibernate.envers.test.integration.entityNames.oneToManyNotAudited; import org.hibernate.MappingException; import org.hibernate.envers.test.AbstractOneSessionTest; import org.hibernate.envers.test.Priority; import org.junit.Test; import java.io.File; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.List; /** * @author Hernán Chanfreau * */ public class ReadEntityWithAuditedCollectionTest extends AbstractOneSessionTest{ private long id_car1; private long id_car2; private Car currentCar1; private Person currentPerson1; private long id_pers1; private Car car1_1; protected void initMappings() throws MappingException, URISyntaxException { URL url = Thread.currentThread().getContextClassLoader().getResource("mappings/entityNames/oneToManyNotAudited/mappings.hbm.xml"); config.addFile(new File(url.toURI())); } @Test @Priority(10) public void initData() { initializeSession(); Person pers1 = new Person("Hernan", 28); Person pers2 = new Person("Leandro", 29); Person pers4 = new Person("Camomo", 15); List<Person > owners = new ArrayList Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate ReadEntityWithAuditedCollectionTest.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.