refactor(module-web,module-ejb): again refactor

This commit is contained in:
Damian Pierzchalski 2018-12-17 15:47:14 +01:00
parent fa9942c031
commit 8476fa70a1
12 changed files with 34 additions and 36 deletions

View File

@ -1,4 +1,4 @@
package pl.myboardgames.boardgame.db;
package pl.myboardgames.db;
import java.util.HashSet;
import java.util.Set;
@ -8,7 +8,7 @@ import javax.persistence.EntityNotFoundException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.model.BoardGameEntity;
@Stateless
public class BoardGameDao {

View File

@ -1,4 +1,4 @@
package pl.myboardgames.user.db;
package pl.myboardgames.db;
import java.util.HashSet;
import java.util.Set;
@ -8,8 +8,8 @@ import javax.persistence.EntityNotFoundException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.user.model.UserEntity;
import pl.myboardgames.model.BoardGameEntity;
import pl.myboardgames.model.UserEntity;
@Stateless
public class UserDao {

View File

@ -1,4 +1,4 @@
package pl.myboardgames.boardgame.model;
package pl.myboardgames.model;
import java.util.HashSet;
import java.util.Set;
@ -13,7 +13,6 @@ import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import pl.myboardgames.user.model.UserEntity;
@Entity
@Table(name = "boardgames")

View File

@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.user.model;
package pl.myboardgames.model;
import java.util.HashSet;
import java.util.Set;
@ -15,7 +15,7 @@ import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.model.BoardGameEntity;
/**
*

View File

@ -3,14 +3,13 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.boardgame.dto;
package pl.myboardgames.dto;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.user.dto.UserShortDto;
import pl.myboardgames.model.BoardGameEntity;
/**

View File

@ -3,9 +3,9 @@
* To change ret template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.boardgame.dto;
package pl.myboardgames.dto;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.model.BoardGameEntity;
/**
*

View File

@ -3,9 +3,9 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.boardgame.dto;
package pl.myboardgames.dto;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.model.BoardGameEntity;
/**
*

View File

@ -3,14 +3,14 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.user.dto;
package pl.myboardgames.dto;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import pl.myboardgames.boardgame.dto.BoardGameShortDto;
import pl.myboardgames.user.model.UserEntity;
import pl.myboardgames.dto.BoardGameShortDto;
import pl.myboardgames.model.UserEntity;
/**
*

View File

@ -3,9 +3,9 @@
* To change ret template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.user.dto;
package pl.myboardgames.dto;
import pl.myboardgames.user.model.UserEntity;
import pl.myboardgames.model.UserEntity;
/**
*

View File

@ -3,9 +3,9 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pl.myboardgames.user.dto;
package pl.myboardgames.dto;
import pl.myboardgames.user.model.UserEntity;
import pl.myboardgames.model.UserEntity;
/**
*

View File

@ -1,4 +1,4 @@
package pl.myboardgames.boardgame.resources;
package pl.myboardgames.resources;
import java.util.stream.Collectors;
import javax.ejb.EJB;
@ -13,11 +13,11 @@ import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import pl.myboardgames.boardgame.db.BoardGameDao;
import pl.myboardgames.boardgame.dto.BoardGameDto;
import pl.myboardgames.boardgame.dto.BoardGameMapper;
import pl.myboardgames.boardgame.dto.BoardGameShortDto;
import pl.myboardgames.boardgame.model.BoardGameEntity;
import pl.myboardgames.db.BoardGameDao;
import pl.myboardgames.dto.BoardGameDto;
import pl.myboardgames.dto.BoardGameMapper;
import pl.myboardgames.dto.BoardGameShortDto;
import pl.myboardgames.model.BoardGameEntity;
@Path("/boardgame")
@RequestScoped

View File

@ -1,4 +1,4 @@
package pl.myboardgames.user.resources;
package pl.myboardgames.resources;
import java.util.stream.Collectors;
import javax.ejb.EJB;
@ -13,12 +13,12 @@ import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import pl.myboardgames.boardgame.dto.BoardGameShortDto;
import pl.myboardgames.user.db.UserDao;
import pl.myboardgames.user.dto.UserDto;
import pl.myboardgames.user.dto.UserMapper;
import pl.myboardgames.user.dto.UserShortDto;
import pl.myboardgames.user.model.UserEntity;
import pl.myboardgames.dto.BoardGameShortDto;
import pl.myboardgames.db.UserDao;
import pl.myboardgames.dto.UserDto;
import pl.myboardgames.dto.UserMapper;
import pl.myboardgames.dto.UserShortDto;
import pl.myboardgames.model.UserEntity;
@Path("/user")
@RequestScoped