Hi Dominique,
this depends on what you want to do. Do you want to be able to have a
getGroup() getter on the User class that automatically gets the group
instance? If you want to do that, you need a nightly build of RIFE
1.6, which will be released as final before the end of the month.
There are no docs for the new manyToOne, manyToOneAssociation,
manyToMany, and manyToManyAssociation features yet. You can however
find out how they work by looking at the tests sources:
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/
database/querymanagers/generic/TestGenericQueryManagerManyToOne.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/
database/querymanagers/generic/TestGenericQueryManagerManyToMany.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/
rifetestmodels/MOFirstBean.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/
rifetestmodels/MOSecondBean.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/
rifetestmodels/MOThirdBean.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/
database/querymanagers/generic/beans/MMFirstBean.java
https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/
database/querymanagers/generic/beans/MMSecondBean.java
Hope this helps,
Geert
On 16 May 2007, at 21:39, Dominique de Vito wrote:
Hi,
I have defined, let's say, a Group class having some
properties + a getListUsers() method returning a list
of User instances.
Demos say I can define:
addConstraint(new ConstrainedProperty("users")
.notNull(true).listed(true)
.manyToOne(User.class, "id"));
But there is no "oneToMany" that I need here !
So, here are my questions:
- Is "oneToMany" a feature missing ?
- or, is it not the way to go ? if so, what is the
work-around ?
Thanks,
Dominique
______________________________________________________________________
_______
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers
Yahoo! Mail
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users