xenoterracide
12/15/2018, 1:51 PMinterface Identified<ID extends Serializable> : Persistable<ID> {
@JsonIgnore
override fun boolean isNew() {
return this.getId() == null;
}
fun sameIdAs( Identified<ID> that ) : Boolean {
return Objects.equals( this.getId(), that.getId() );
}
}
what's wrong with the generic definitionorangy
ID : Serializable
xenoterracide
12/15/2018, 1:59 PM