예제 #1
0
 @Override
 @Transactional
 public Auction createAuction(
     Date created, String title, String description, User client, Car car) {
   Auction auction = new Auction(created, title, description, client, car);
   Long id = save(auction);
   auction.setId(id);
   return auction;
 }
예제 #2
0
 @Override
 protected Long getId(Auction u) {
   return u.getId();
 }