From 5d14d554d693f6be6a324ca83f89512d42eb29f2 Mon Sep 17 00:00:00 2001 From: DOHA Date: Wed, 28 Jan 2015 18:54:52 +0200 Subject: [PATCH] delete user service --- .../service/impl/MyUserService.java | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 spring-security-rest-full/src/main/java/org/baeldung/persistence/service/impl/MyUserService.java diff --git a/spring-security-rest-full/src/main/java/org/baeldung/persistence/service/impl/MyUserService.java b/spring-security-rest-full/src/main/java/org/baeldung/persistence/service/impl/MyUserService.java deleted file mode 100644 index 804f4d41c0..0000000000 --- a/spring-security-rest-full/src/main/java/org/baeldung/persistence/service/impl/MyUserService.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.baeldung.persistence.service.impl; - -import java.util.List; - -import org.baeldung.persistence.dao.MyUserPredicatesBuilder; -import org.baeldung.persistence.dao.MyUserRepository; -import org.baeldung.persistence.model.MyUser; -import org.baeldung.web.util.SearchCriteria; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import com.mysema.query.types.expr.BooleanExpression; - -@Service -@Transactional -public class MyUserService { - - @Autowired - private MyUserRepository repository; - - public MyUserService() { - super(); - } - - public Iterable search(final List params) { - final BooleanExpression predicate = MyUserPredicatesBuilder.buildUserPredicates(params); - if (predicate == null) - return repository.findAll(); - return repository.findAll(predicate); - } - - public void save(final MyUser user) { - repository.save(user); - } -}