datanucleus/datanucleus-jpa-query

Annotations on field are sometimes not stripped by type handling

Closed this issue · 0 comments

If we have a field like

@NotNull 
@Size(max=32) 
String myField

this can sometimes come through the type.toString() as

@javax.validation.constraints.NotNull,@javax.validation.constraints.Size(max=32) java.lang.String

No idea why, because javax.persistence annotations are stripped off.

Seen when using Java9+