
org.hibernate.beanvalidation.tck.tests.xmlconfiguration.constraintdeclaration.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beanvalidation-tck-tests Show documentation
Show all versions of beanvalidation-tck-tests Show documentation
Jakarta Bean Validation TCK test suite
The newest version!
/**
* Jakarta Bean Validation TCK
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.beanvalidation.tck.tests.xmlconfiguration.constraintdeclaration;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
/**
* @author Hardy Ferentschik
*/
public class User {
private String firstname;
private String lastname;
@NotNull(groups = Default.class)
public String getFirstname() {
return firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy