@Test public void testSave() { ClientToken ct = newInstence(); us.save(ct.getUser()); assertThat(ct.getUser().getId(), not(0)); cts.save(ct); assertThat(ct.getId(), not(0)); }
@Transactional(propagation = Propagation.REQUIRED) public void save(ClientToken ct) { ctd.save(ct); }
ClientTokenService { @Transactional(propagation = Propagation.REQUIRED) public void save(ClientToken ct) { ctd.save(ct); } }
ClientTokenService { @Transactional(propagation = Propagation.REQUIRED) public void save(ClientToken ct) { ctd.save(ct); }  }
ClientTokenService { @Transactional(propagation = Propagation.REQUIRED) public void save(ClientToken ct) { ctd.save(ct); }  ClientToken findByEmail(String email); @Transactional(propagation = Propagation.REQUIRED) void save(ClientToken ct); ClientToken findByToken(String token); boolean checkTokenBelongToUser(String token, int u_id); boolean checkTokenBelongToUser(String token, String email); }
ClientTokenService { @Transactional(propagation = Propagation.REQUIRED) public void save(ClientToken ct) { ctd.save(ct); }  ClientToken findByEmail(String email); @Transactional(propagation = Propagation.REQUIRED) void save(ClientToken ct); ClientToken findByToken(String token); boolean checkTokenBelongToUser(String token, int u_id); boolean checkTokenBelongToUser(String token, String email);  }