Hi Hui,

adding the "sparse" constraint and setting it to true should work.

Best regards,

Geert

On 10-mrt-06, at 15:46, hui wrote:

How to manage a database bean using GenericQueryManager but without a "id"?


Person.java

class Person {
    private String username;
    private String password;

    /*...................*/
}


and I want to use username as the primary KEY, without a int type
"ID", is it possible?

=============
addConstraint(new ConstrainedProperty("username")
                .maxLength(20)
                .minLength(3)
                .identifier(true)
        );
=============
in PersonMetaData is not working, seems identifier can only be int type?

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


--
Geert Bevin             Uwyn bvba               GTalk: [EMAIL PROTECTED]
"Use what you need"     Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

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://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to