blob: cafa172f936299f9275cb0be9325279981779895 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<constraint-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/mapping validation-mapping-1.0.xsd"
xmlns="http://jboss.org/xml/ns/javax/validation/mapping">
<default-package>example.jpa.dynamic.model.employee</default-package>
<bean class="Employee" ignore-annotations="true">
<getter name="firstName" ignore-annotations="true">
<constraint annotation="javax.validation.constraints.NotNull" />
</getter>
<getter name="lastName" ignore-annotations="true">
<constraint annotation="javax.validation.constraints.NotNull" />
</getter>
<getter name="gender" ignore-annotations="true">
<constraint annotation="javax.validation.constraints.NotNull" />
</getter>
<getter name="address" ignore-annotations="true">
<constraint annotation="javax.validation.constraints.NotNull" />
</getter>
</bean>
</constraint-mappings>