Re: RF for CRUD and RPC for others?

2011-04-30 Thread Diego Lovison
I would like @Inject the EntityManager using RF, how I can do this? On 29 abr, 09:11, Juan Pablo Gardella wrote: > For example? What do you want to do? > > 2011/4/29 Diego Lovison > > > how I can @Inject using RF? > > for RPChttp://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ > > and I

Re: RF for CRUD and RPC for others?

2011-04-29 Thread Juan Pablo Gardella
For example? What do you want to do? 2011/4/29 Diego Lovison > how I can @Inject using RF? > for RPC http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ > and I can @Inject my EJB too... > > > Using RF I will @Inject my EJB on Entity? how? > > On 29 abr, 01:56, Juan Pablo Gardella > wro

Re: RF for CRUD and RPC for others?

2011-04-29 Thread Diego Lovison
how I can @Inject using RF? for RPC http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ and I can @Inject my EJB too... Using RF I will @Inject my EJB on Entity? how? On 29 abr, 01:56, Juan Pablo Gardella wrote: > RF perhaps is better to tools, like Roo > > 2011/4/28 -sowdri- > > > > >

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Juan Pablo Gardella
RF perhaps is better to tools, like Roo 2011/4/28 -sowdri- > In fact RF is simple compared to RPC! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To uns

Re: RF for CRUD and RPC for others?

2011-04-28 Thread -sowdri-
In fact RF is simple compared to RPC! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Juan Pablo Gardella
Option 2. I think in this case use RPC is more simple and better. If not, why is not? Juan 2011/4/28 Juan Pablo Gardella > For this cases, is more simple use RPC. > > > 2011/4/28 -sowdri- > >> RF could be used to perform: >> >> 1. CRUD operations on entities (without a service layer at all) >>

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Juan Pablo Gardella
For this cases, is more simple use RPC. 2011/4/28 -sowdri- > RF could be used to perform: > > 1. CRUD operations on entities (without a service layer at all) > 2. Call methods on your service layer, which can again return Entities or > ValueProxies or Simple types! > > So you are free to choose

Re: RF for CRUD and RPC for others?

2011-04-28 Thread -sowdri-
RF could be used to perform: 1. CRUD operations on entities (without a service layer at all) 2. Call methods on your service layer, which can again return Entities or ValueProxies or Simple types! So you are free to choose where to add your business logic, while the second option would be a na

Re: RF for CRUD and RPC for others?

2011-04-28 Thread David Chandler
For an example of using a ServiceLocator to expose DAOs directly as RF services, see http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ /dmc On Thu, Apr 28, 2011 at 6:03 PM, khiem nguyen wrote: > > you can use ServiceLocator & write your logic in it ( which co

Re: RF for CRUD and RPC for others?

2011-04-28 Thread khiem nguyen
you can use ServiceLocator & write your logic in it ( which could also make use of DAO) On Thu, Apr 28, 2011 at 5:56 PM, Juan Pablo Gardella < gardellajuanpa...@gmail.com> wrote: > I think as you. Where is the best place to put logic if we use RF? With RPC > I have services and daos. > > Juan > >

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Juan Pablo Gardella
I think as you. Where is the best place to put logic if we use RF? With RPC I have services and daos. Juan 2011/4/28 Diego Lovison > hmmm.. > > using RF I need put the all logic on the Entity? > for example: > I would like save a employee, but I need verify other thinks that the > hibernate val

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Diego Lovison
hmm... I did not understand one thing.. Using RF, you need put all your business rules on an entity? for example: I need save one Employee, but have a business rule that the HibernateValidator dont support... I will put the bussiness rule on the Employee entity? On 28 abr, 10:23, Thomas Broyer

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Diego Lovison
verify other thinks = verify other things -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr.

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Diego Lovison
hmmm.. using RF I need put the all logic on the Entity? for example: I would like save a employee, but I need verify other thinks that the hibernate validator dont attend.. where I put this logic on entity? Using RPC I create a DAO and put this logic in DAO.. other way.. I can use ValueProxy with

Re: RF for CRUD and RPC for others?

2011-04-28 Thread Thomas Broyer
Er, no. I'd rather say: if you choose to use RF, then use it (at least) for entities and related value objects (CRUD or not); for value objects that are not 'connected' in any way to your entities, then you have the choice (but I'd go with RF and ValueProxy-s too; it feels strange to mix RF and

RF for CRUD and RPC for others?

2011-04-28 Thread Diego Lovison
Hi, I read this on http://code.google.com/p/google-web-toolkit/wiki/AutoBean Comment by project member t.broyer, Dec 21, 2010 RequestFactory? is not designed for an "RPC style" use, but using only ValueProxy? I believe you could do it anyway (it could also be a first step in migrating from GWT-RPC