Well the question pretty much says everything. Using JPARepository how do I update an entity?
JPARepository has only a save method, which does not t
This is how I solved the problem:
User inbound = ... User existing = userRepository.findByFirstname(inbound.getFirstname()); if(existing != null) inbound.setId(existing.getId()); userRepository.save(inbound);