Hi Hardy!
Thanks that was extremely informative, helpful and straight to the point!
Sorry I am not familiar with the group validation that you are talking about could you kindly point me to some documentation in which you are referring to?
On another stream of thought...
If I have
NO validation on PersonBase but rather have it on the
extended classes would this be a suitable fix to the problem?
I.e.
PersonBase.java
Code:
@Column(name = "first_name", nullable = false, length = 32)
@NotNull
public String getFirstName() {
return this.firstName;
}
ShortNamePerson.java extends PersonBase
Code:
@Column(name = "first_name", nullable = false, length = 15)
@NotNull
@Length(max = 15)
public String getFirstName() {
return this.firstName;
}
LongNamePerson.java extends PersonBase
Code:
@Column(name = "first_name", nullable = false, length = 32)
@NotNull
@Length(max = 32)
public String getFirstName() {
return this.firstName;
}