Here is an example of how I would use it: ``` fun ...
# announcements
d
Here is an example of how I would use it:
Copy code
fun 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.