entity.setText("abcdefghijk"); // invalid - too long (max 10 chars)
entity.setOneToOne(null); // invalid - cannot be null
entity.setManyToOne(null); // invalid - cannot be null
DefaultValidationAnnotationHandlerRegistry registry = new DefaultValidationAnnotationHandlerRegistry();
registry.registerPropertyHandler(new JpaBasicAnnotationHandler());
registry.registerPropertyHandler(new JpaColumnAnnotationHandler());
registry.registerPropertyHandler(new JpaManyToOneAnnotationHandler());
registry.registerPropertyHandler(new JpaOneToOneAnnotationHandler());
AnnotationBeanValidationConfigurationLoader loader = new AnnotationBeanValidationConfigurationLoader();