You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a record
@RecordBuilder
public record IdentityData(
Long id, @NotNull IdentityType identityType, @notempty String identityNumber
}
The builder generated has
@generated("io.soabase.recordbuilder.core.RecordBuilder")
public static IdentityData IdentityData(Long id, @NotNull IdentityType identityType, @notempty String identityNumber ) {
return new IdentityData(id, identityType, identityNumber);
}
Static fields are excluded from validation in Jakarta Bean Validation. When using say a framework like Quarkus you get a warning
Hibernate Validator does not support constraints on static methods yet.
The text was updated successfully, but these errors were encountered:
Given a record
@RecordBuilder
public record IdentityData(
Long id,
@NotNull IdentityType identityType,
@notempty String identityNumber
}
The builder generated has
@generated("io.soabase.recordbuilder.core.RecordBuilder")
public static IdentityData IdentityData(Long id, @NotNull IdentityType identityType,
@notempty String identityNumber ) {
return new IdentityData(id, identityType, identityNumber);
}
The text was updated successfully, but these errors were encountered: