tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/254-i-want-to-dig-deeper-in-modelRobotlegs: Discussion 2018-10-18T16:35:22Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/50254762011-01-30T11:24:05Z2011-01-30T11:26:10ZI want to dig deeper in Model :)<div><p>Hi,</p>
<p>A good way to use model for general applications is separating
in this way:</p>
<p>vo - Value Objects: like PersonVo (name, age, favorite food,
favorite sex position);<br>
signals - where you store all your signals;<br>
enums - for constants and application settings/proprietes;<br>
collections - for list sources, like an ArrayCollection of webcams
from Camera.names, that will be used in a list component.</p>
<p>locators - i use locators for each of this model types, like
VoLocator, SignalsLocator, and i insert them into the main
ModelLocator, instead of instertign all the model classes in
it.</p>
<p>I hope it helps,<br>
Have a good day :),<br>
Geo.</p></div>george.dascalutag:robotlegs.tenderapp.com,2009-10-18:Comment/50254762011-01-30T11:52:44Z2011-01-30T11:52:44ZI want to dig deeper in Model :)<div><p>Hi Geo,</p>
<p>what's the purpose of the ModelLocator / VoLocator etc?</p>
<p>I'd imagine I'd use this approach if I wasn't also using
automated DI, but I'm not sure what the benefits are with robotlegs
there to do the wiring.</p>
<p>Can you say a little more?</p>
<p>Thanks,</p>
<p>Stray</p></div>Stray