Fix to Hibernate4 module (#1071)

* How to work with dates in Thymeleaf

* Fixes in PR for Thymeleaf

* Changes to i18n

* Resolved issue with i18n
This commit is contained in:
maibin 2017-01-29 16:22:27 +01:00 committed by GitHub
parent 49b973566c
commit 1e74f9dbe8
3 changed files with 120 additions and 122 deletions

View File

@ -7,9 +7,9 @@ import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import com.baeldung.hibernate.model.Cart;
import com.baeldung.hibernate.model.Items;
import com.baeldung.hibernate.config.HibernateAnnotationUtil;
import com.baeldung.hibernate.oneToMany.config.HibernateAnnotationUtil;
import com.baeldung.hibernate.oneToMany.model.Cart;
import com.baeldung.hibernate.oneToMany.model.Items;
public class HibernateOneToManyAnnotationMain {

View File

@ -1,13 +1,14 @@
package com.baeldung.hibernate.oneToMany.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
public class ItemsTest {
@ -102,7 +103,7 @@ public class ItemsTest {
System.out.println("setCart");
Cart cart = null;
Items instance = new Items();
instance.setCart1(cart);
instance.setCart(cart);
fail("The test failed.");
}
@ -126,6 +127,3 @@ public class ItemsTest {
}
}
}