persistence work

This commit is contained in:
eugenp 2013-05-18 17:03:17 +03:00
parent 7cbbf265f9
commit 2035877d58
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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