diesieben07
09/03/2017, 12:17 PMfun put(entry: DTO): ID {
return verifyNotNull(repo.save(entry.toEntity()).id)
}
If after saving the entity does not have an ID, something very bad has happened, but it's not the fault of the person who called put
, so I don't want to throw an IllegalArgumentException
or something like that at them.