org.hibernate.beanvalidation.tck.tests.xmlconfiguration.CreditCard 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
/**
* 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;
import jakarta.validation.constraints.Pattern;
/**
* @author Hardy Ferentschik
*/
public class CreditCard {
@Pattern(regexp = "[0-9]+", message = "Not a credit card number.")
private String number;
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
}