persistence work
This commit is contained in:
parent
7cbbf265f9
commit
2035877d58
|
@ -19,7 +19,7 @@ public abstract class AbstractHibernateDao<T extends Serializable> implements IO
|
|||
// API
|
||||
|
||||
protected final void setClazz(final Class<T> clazzToSet) {
|
||||
clazz = clazzToSet;
|
||||
clazz = Preconditions.checkNotNull(clazzToSet);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,10 +7,8 @@ import org.baeldung.spring.persistence.service.IFooService;
|
|||
import org.baeldung.spring.persistence.service.common.AbstractService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class FooService extends AbstractService<Foo> implements IFooService {
|
||||
|
||||
@Autowired
|
||||
|
|
Loading…
Reference in New Issue