From 73fbf8078220250eba4170ba2971791158e58540 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Thu, 16 Jun 2011 12:31:32 +0200
Subject: [PATCH] fixed #62 : Domain wird aus DNS geloescht

---
 hsarback/src/de/hsadmin/mods/dom/Domain.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@
 	@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;
 

--
Gitblit v1.9.1