Can you let me know if there's an easy way to do this OR if not, whats the
easiest approach for handling this given the default architecture of a
sculptor generated app.

Say we have a hierarchy of entities like this:

Entity A {
  String name
  - Set <@B> setOfB <-> ownerA
}

Entity B {
  String subName
  - @A ownerA  <-> setOfB 
  - Set <@C> setOfC <-> ownerB
}

Entity C {
  String lowestLevelName
  String description
  - @B ownerB  <-> setOfC 
}


Within my gui i want to do a ListTask for C which includes these 4 items:

  ownerB.ownerA.name
  ownerB.subName
  lowestLevelName
  description

I know we can do the ownerB.subName as per the GUI DSL docco but i can see
the dsl editor flags double dereferencing as an error (ie. for something
like ownerB.ownerA.name)

Is there an easy way to do this within the GUI dsl or if not, what is the
best approach given the sculptor architecture?

Ideas that come to mind are:

1. Create a gap classes for the ListCAction and the ListCForm and include a
call to the AService.findById()

2. Or create a new object X as a ValueObject (but non-persisted so really
being a DTO) to hold all the info that I'm after. For ServiceX define a
findAll method which uses both CService.findAll() and AService.findById().
Obviously this would mean handcrafting of UI also.

Any suggestions? 
 
-- 
View this message in context: 
http://old.nabble.com/-Sculptor--How-to-do-ListTask-involving-hierarchy-of-entities--tp26635752s17564p26635752.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to