general formatting work
This commit is contained in:
@@ -8,6 +8,6 @@ import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
|
||||
public class GenericHibernateDao<T extends Serializable> extends AbstractHibernateDao<T>implements IGenericDao<T> {
|
||||
public class GenericHibernateDao<T extends Serializable> extends AbstractHibernateDao<T> implements IGenericDao<T> {
|
||||
//
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ChildService extends AbstractHibernateService<Child>implements IChildService {
|
||||
public class ChildService extends AbstractHibernateService<Child> implements IChildService {
|
||||
|
||||
@Autowired
|
||||
private IChildDao dao;
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class FooService extends AbstractHibernateService<Foo>implements IFooService {
|
||||
public class FooService extends AbstractHibernateService<Foo> implements IFooService {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("fooHibernateDao")
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ParentService extends AbstractHibernateService<Parent>implements IParentService {
|
||||
public class ParentService extends AbstractHibernateService<Parent> implements IParentService {
|
||||
|
||||
@Autowired
|
||||
private IParentDao dao;
|
||||
|
||||
@@ -41,7 +41,6 @@ public class JPABarAuditTest {
|
||||
logger.info("tearDownAfterClass()");
|
||||
}
|
||||
|
||||
|
||||
@Autowired
|
||||
@Qualifier("barJpaService")
|
||||
private IBarService barService;
|
||||
@@ -51,7 +50,6 @@ public class JPABarAuditTest {
|
||||
|
||||
private EntityManager em;
|
||||
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
logger.info("setUp()");
|
||||
@@ -64,7 +62,6 @@ public class JPABarAuditTest {
|
||||
em.close();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public final void whenBarsModified_thenBarsAudited() {
|
||||
|
||||
@@ -84,7 +81,6 @@ public class JPABarAuditTest {
|
||||
bar1.setName("BAR1b");
|
||||
barService.update(bar1);
|
||||
|
||||
|
||||
// get BAR1 and BAR2 from the DB and check the audit values
|
||||
// detach instances from persistence context to make sure we fire db
|
||||
em.detach(bar1);
|
||||
|
||||
Reference in New Issue
Block a user