01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * JR Boyens <gnu-jrb[remove] at gmx dot net>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id: UniqueBeanNotNull.java 3657 2007-02-15 23:39:06Z gbevin $
08: */
09: package com.uwyn.rife.database.querymanagers.generic.beans;
10:
11: import com.uwyn.rife.database.querymanagers.generic.beans.UniqueBean;
12: import com.uwyn.rife.site.ConstrainedProperty;
13:
14: public class UniqueBeanNotNull extends UniqueBean {
15: protected void activateValidation() {
16: super .activateValidation();
17:
18: addConstraint(new ConstrainedProperty("thirdString").maxLength(
19: 50).notNull(true).defaultValue(""));
20: }
21: }
|