On 21 nov, 13:48, hezjing <hezj...@gmail.com> wrote:
> Hi
>
> May I know if the interface defined in the RequestFactory service stub like
> EmployeeRequest must be corresponding to a method defined in the entity?
>
> Imagine that I already have a JPA entity class like the following, which has
> a named query instead of a findAllEmployees()
>
> @Entity
> @NamedQuery(name = "findAllEmployees", query = "SELECT e FROM Employee e")
> public class Employee {
> ...
> /* public static List<Employee> findAllEmployees() { ... } */
>
> }
>
> Is it true that the EmployeeRequest cannot call and execute the named query
> without the findAllEmployees()?

For now, yes. In GWT 2.1.1 you'll be able to plug a ServiceLayer
(ServiceLayerDecorator actually) that would allow you to handle the
"client call" as a "use name query" instead.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to