From 73fbf8078220250eba4170ba2971791158e58540 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 16 Jun 2011 10:31:32 +0000 Subject: [PATCH] fixed #62 : Domain wird aus DNS geloescht --- hsarback/src/de/hsadmin/mods/dom/Domain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/Domain.java b/hsarback/src/de/hsadmin/mods/dom/Domain.java index 2e3a4b7..0133dc2 100644 --- a/hsarback/src/de/hsadmin/mods/dom/Domain.java +++ b/hsarback/src/de/hsadmin/mods/dom/Domain.java @@ -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;