fixed #62 : Domain wird aus DNS geloescht

This commit is contained in:
Peter Hormanns 2011-06-16 10:31:32 +00:00
parent 4947511bde
commit 73fbf80782

View File

@ -32,7 +32,7 @@ public class Domain extends AbstractEntity {
@GeneratedValue(strategy = SEQUENCE, generator = "DomainsSeqGen")
private long id;
@FieldValidation("[a-z0-9\\-\\.]*")
@FieldValidation("([-a-z0-9]+\\.)+[a-z]{2,}")
@Column(name = "domain_name", columnDefinition = "character varying(256)", nullable = false)
private String name;