@Size(max = 45)
to a Long or Integer field. This may happen you re-factor your field from String to Long etc.
Another example is you use JSR303 bean validation in flavor of Hibernate Validator and you have in your JPA entity the Hibernate-specific @NotEmpty on an Integer property like this:
private Integer some;