Another case of bug vs operator error inquiry:

As I'm still coming up to speed on Sculptor, I'm not sure if what I'm doing
is the "right" way or not.  I know if I use this model, I can create all the
pieces and parts in code and then do a save, and it works.  But, in the
default GUI app, this is not the case.

Model:

                Entity Person {
                        scaffold
                String name key                                 
        } 
        
                BasicType Event {
                        String title
                        Date scheduled
                }
                
                ValueObject CalendarEvent {
                        String location
                        - @Event event
                }
                
                Entity MyCalendar{
                        !aggregateRoot
                        - List<@CalendarEvent> events inverse                   
                }
                
                Entity Calendars{
                        scaffold
                        - @Person person key
                        - @MyCalendar work
                        - @MyCalendar home
                }


I run install, and then run the web app. I create a Person, then create a
Calendars entity with empty datasets for Work and Home calendar.

1) Person /  Create person: 
        Person name: Bob
        Next / Save

2) Calendars / Create Calendar
      Select existing Person: Bob / Set

      Work / Create my calendar / next / save
      Home / Create my calendar / next / save


     Next / ==  Errors out with 2 lines of "My calendar reference is
required" 


If I add "scaffold" to MyCalendar, it errors out during the generation
process.

So, how do you properly declare a dependent Entity?  If this is the correct
way, as I can make it work in code,  is this a problem with the generated
GUI?


Again, default archetypes from the tutorials (1.7 snapshot), no
modifications to anything.



Thanks in advance for any direction you can provide.


-- adam
   
-- 
View this message in context: 
http://old.nabble.com/Problem-with-%21aggregateRoot-in-default-GUI-app---%22reference-is-required%22-tp27370910s17564p27370910.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to