A lot of JPA entity demo classes have the following snippets:
@Id
private Long id;
Can anyone see any drawbacks to always marking the id
property as final?
@Id
private final Long id;
It seems like we almost always want to do this in order to preserve the entities identity.