Move hbm files to resources folder

This commit is contained in:
Grzegorz Piwowarek
2016-08-10 11:48:21 +02:00
parent ee0e14e590
commit da2ef4f4e7
7 changed files with 0 additions and 78 deletions
@@ -1,15 +0,0 @@
package com.baeldung.hibernate.criteria;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
public class HibernateCriteriaTestRunner {
public static void main(final String[] args) {
Result result = JUnitCore.runClasses(HibernateCriteriaTestSuite.class);
for (Failure failure : result.getFailures()) {
}
}
}
@@ -1,11 +0,0 @@
package com.baeldung.hibernate.criteria;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({ HibernateCriteriaTest.class })
public class HibernateCriteriaTestSuite {
}
@@ -1,24 +0,0 @@
package com.baeldung.hibernate.fetching;
import static org.junit.Assert.*;
import org.junit.Test;
import com.baeldung.hibernate.fetching.view.FetchingAppView;
public class HibernateFetchingTest {
@Test
public void testLazyFetching() {
FetchingAppView fav = new FetchingAppView();
fav.createTestData();
assertFalse(fav.lazyLoaded());
}
@Test
public void testEagerFetching() {
FetchingAppView fav = new FetchingAppView();
assertTrue(fav.eagerLoaded());
}
}
@@ -1,17 +0,0 @@
package com.baeldung.hibernate.fetching;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
public class HibernateFetchingTestRunner {
public static void main(final String[] args) {
Result result = JUnitCore.runClasses(HibernateFetchingTestSuite.class);
for (Failure failure : result.getFailures()) {
}
}
}
@@ -1,11 +0,0 @@
package com.baeldung.hibernate.fetching;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({ HibernateFetchingTest.class })
public class HibernateFetchingTestSuite {
}
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.baeldung.hibernate.criteria.model.Item" table="ITEM">
<id name="itemId" type="java.lang.Integer">
<column name="ITEM_ID" />
<generator class="identity" />
</id>
<property name="itemDescription" type="string">
<column name="ITEM_DESC" length="100" />
</property>
<property name="itemPrice" type="java.lang.Integer">
<column name="ITEM_PRICE" not-null="true" />
</property>
<property name="itemName" type="string">
<column name="ITEM_NAME" not-null="true" />
</property>
</class>
</hibernate-mapping>