On Monday, January 10, 2011 11:07:48 PM UTC+1, Lisa D wrote:
>
> Sorry if it seems like I'm attacking anyone, I'm not... 
>
> Currently I'm trying to start a ERP style project. Initially 
> generating most of the scaffolding from Spring Roo (once 1.1.1 is 
> released). This will give me my entities, and scaffolding for my 
> activities and places. 
>
> I'll be using MySQL as my DB 
>
> And thanks to you and others on this group there's already lots of 
> documentation available to me,(Activity / Places) so I can understand 
> and manipulate the scaffolding to suit my needs. But what I cannot 
> figure out is how I'm going to implement the Service Layer GWT 2.1.1 
> stuff to put some business logic into my App so that I can add some 
> business functionality to the App. 
>
> So ideally I'd like some documentation that could explain how I can 
> implement business logic in my service layer while keep my entities 
> very POJO like. Even something as simple as a bank account app. Adding 
> and deleting money form a checking and saving a/c's etc.
>

OK, so you don't need to know about ServiceLayerDecorator. What you askfor 
was already possible in GWT 2.1.0, but your "business methods" had to be 
static (but not necessarily on your entity classes!). With GWT 2.1.1 you'll 
give a ServiceLocator so RequestFactory will be able to create an instance 
of your object implementing your business logic (as either static or 
instance methods).
And similarly, you'll provide a Locator for your entities so RequestFactory 
can "find" them without resorting to a findXxx static method on the entity 
class.
I've finally spent a couple hours writing a log post about RequestFactory: 
http://tbroyer.posterous.com/gwt-211-requestfactory

@David: could you please update the online JavaDoc? I currently have broken 
links, and some others might provide misleading information (e.g. 
InstanceRequest and RequestContext#create had EntityProxy bounds in 2.1.0 
when they now have BaseProxy bounds)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to