@GET
 @Path("/email/{email}")
 // Full URL: http://localhost:8080/BattleBoats/rest/players/email/[email protected]
 public List<Player> findByEmail(@PathParam("email") String email) {
   return dao.findByEmail(email);
 }
 @GET
 // Full URL: http://localhost:8080/BattleBoats/rest/players
 public List<Player> findAll() {
   return dao.findAll();
 }
 @GET
 @Path("/username/{userName}")
 // Full URL: http://localhost:8080/BattleBoats/rest/players/username/hpotter
 public Player findByUserName(@PathParam("userName") String userName) {
   return dao.findByUserName(userName);
 }
 @GET
 @Path("{id: \\d+}")
 // Full URL: http://localhost:8080/BattleBoats/rest/players/1234
 public Player findById(@PathParam("id") Integer id) {
   return dao.findById(id);
 }
 @DELETE
 public Player delete(Player player) {
   return dao.delete(player);
 }
 @PUT
 public Player update(Player player) {
   return dao.update(player);
 }
 @POST
 public Player insert(Player player) {
   return dao.insert(player);
 }