Ooops, I forgot to mention I am working with CRUD RIFE
capabilities. Currently, the group's listUsers
property gives me, into the generated Group page, a
regular input field. In my dreams, I expected to have,
not a input field, but a list of printed users and a
'add' button to add users to a group.

At first sight, I thought I "just" needed to add a
"oneToMany" constraint on the GroupMetaData.

Is it something planned ?

Yes, create an associations constraint on the other bean, not on the properties. That should link them together in RIFE/Crud. https://svn.rifers.org/rife-crud/trunk/samples/java/com/uwyn/rife/ crud/samples/beans/Test.java

There are no docs for the new manyToOne,

You mean new oneToMany ?

What you call oneToMany is named manyToOneAssociation in RIFE 1.6.

manyToOneAssociation,
manyToMany, and manyToManyAssociation features yet.

Are you listed those features because they are planned
for 1.6 ?

No, they are already in there. 1.6 is almost done, just need time for cleaning up a bit, write docs, check sibling projects with the new version and release it.

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

Thanks.

I will take a look.

Dominique



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

Reply via email to