@Test public void findById() { }
@Transactional(readOnly = true) public Receiver findById(long id) { final Receiver receiver = receiverRepository.findOne(id); if (receiver == null) throw new IllegalArgumentException("..."); return receiver; }
ReceiverService { @Transactional(readOnly = true) public Receiver findById(long id) { final Receiver receiver = receiverRepository.findOne(id); if (receiver == null) throw new IllegalArgumentException("..."); return receiver; } }
ReceiverService { @Transactional(readOnly = true) public Receiver findById(long id) { final Receiver receiver = receiverRepository.findOne(id); if (receiver == null) throw new IllegalArgumentException("..."); return receiver; } @Builder  ReceiverService(ReceiverRepository receiverRepository); }
ReceiverService { @Transactional(readOnly = true) public Receiver findById(long id) { final Receiver receiver = receiverRepository.findOne(id); if (receiver == null) throw new IllegalArgumentException("..."); return receiver; } @Builder  ReceiverService(ReceiverRepository receiverRepository); @Transactional(readOnly = true) Receiver findById(long id); @Transactional Receiver create(Receiver receiver); @Transactional Receiver updateAddress(long id, Address address); }
ReceiverService { @Transactional(readOnly = true) public Receiver findById(long id) { final Receiver receiver = receiverRepository.findOne(id); if (receiver == null) throw new IllegalArgumentException("..."); return receiver; } @Builder  ReceiverService(ReceiverRepository receiverRepository); @Transactional(readOnly = true) Receiver findById(long id); @Transactional Receiver create(Receiver receiver); @Transactional Receiver updateAddress(long id, Address address);  }