Hi,

sadly this is simply RIFE/Crud that hasn't been updated since RIFE  
supports manyToOne and manyToMany. I still plan on doing that at some  
point, just don't know when.

Sorry about this.

Best regards,

Geert

On 06 Dec 2007, at 14:00, DarkIT wrote:

>
> I'm using rife crud. I have many tables and not all of them are mapped
> to java classes.
> But i want user to have ability to change crud entities which have FK
> to not mapped tables.
>
> So i write  such metadata code:
>
> addConstraint(new
> ConstrainedProperty("activity_type_id").editable(true).
>                listed(true).notNull(true)
>                .manyToOne("activity_type", "activity_type_id"));
>
> And it doesn't work - drop down with id selection is empty.
> But when i use manyToOne  to entites not tables - it works:
>
> addConstraint(new
> ConstrainedProperty("vertical_cluster_id").notNull(false).
>                listed(true).manyToOne(vertical_cluster.class,
> "vertical_cluster_id"));
>
> So is it a bug or feature - that manyToOne to table doesn't work in
> CRUD?
>
> Thank's

--
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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to