コード例 #1
0
  @Transactional
  @Override
  public Response getCustomers() {

    List<Customer> customerList = customerDaoImpl.getCustomers();

    return Response.ok(customerList).build();
  }
コード例 #2
0
 @Transactional
 @Override
 public Response getCustomerById(int customerId) {
   return Response.ok(customerDaoImpl.getCustomerById(customerId)).build();
 }