I'm not 100% sure if I get you.
But, the ordering of EntityB is decided by query, or if not specified, the
order in the table.
If you want to re-define the order and then persist it, I guess you need a
column (say, 'ORDER_COLUMN') for the EntityB. Then when shuffling the list,
update the order attribute on the entities and then
EntityAService.update(entityA).


But as I said, I don't know if this is what you want to do.
And no, there is no support for this kind of functionality.
But of course, we have support for building this kind of functionality with
very few line of code :-)

.../Andreas


On Wed, Nov 11, 2009 at 7:37 AM, greatfooty <greatfo...@gmail.com> wrote:

>
> Guys
>
> Not sure if this is possible using sculptor but I'm trying to figure
> neatest
> way to do re-ordering of a List of EntityB where it participates in a
> many-to-many relationship with EntityA. So say for example I've defined as
> follows:
>
> Entity EntityA {
>    String name key
>    - List<@EntityB> relatedTypeBs <-> relatedTypeAs
> }
>
> Can I retrieve an instance of EntityA, then within my UI offer a neat
> list-shuttling page to enable re-order the List of EntityB and then simply
> have it persisted by using EntityAService.update(entityA) ??
>
> Or do I need to manage this manually by say explicitly modelling an
> intersecting entity and/or manipulating the intersecting entity
> auto-created
> by sculptor ?? Any suggestions on neatest approach for this?
>
> --
> View this message in context:
> http://old.nabble.com/Re-ordering-a-related-List-of-entities--tp26296763s17564p26296763.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to