Hi
I have realized an application with GWT and EJB3 and MYSQL data base.
All this parts communicate successfully with a method which returned
String or int. My problem is when i used a returned type as
List<Users> (Users is an entity which corresponds to the table Users
in the data base), an error occurred in GWT hosted mode application).
Please you resolve this problem.Or have you an example how to
implement a method which returned a List of object in GWT in all
classes ( Myservice, MyserviceAsynch, and MyserviceImpl and in
OnModuleLoad() ).
This is the imlpmentation of verifuser method
________________________________________________________________
public List<Object[]> verifuser(String login,String pwd){
try
{
String texteRequête = "SELECT u.useId,u.useLoginName FROM Users AS u
WHERE u.useLoginName=:p and u.usePassword=:p2";
Query requête = em.createQuery(texteRequête);
return requête.setParameter("p",login).setParameter
("p2",pwd).getResultList();
}
catch (Exception e) {
return null ;
}
_________________________________________________________________
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---