protected void activateValidation() {
                addConstraint(new 
CmfProperty(ID).identifier(true).editable(false));
                addConstraint(new 
CmfProperty(USER_ID).notNull(true).unique(true));
                addConstraint(new
CmfProperty(EMAIL).notNull(true).notEmpty(true).email(true)/* (relaxed
for testing).unique(true)*/);
                addConstraint(new CmfProperty(SEX).inList(SEX_IDS));
addConstraint(new CmfProperty(COUNTRY).inList(Countries.getIds (COUNTRY)));
                addConstraint(new CmfProperty(CREATED).notNull(true));
        }

Hi Emmanuel,

these will also generate the appropriate constraints in the database table creation. So one of these isn't respected when you insert certain bean instances.

Best regards,

Geert
--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to