generating @NotNull and @Size constraints for Entity classes