@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; }
@Override protected Long getId(Auction u) { return u.getId(); }