facebook

Webservice return list/resultset

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #271308 Reply

    @chickenlips wrote:

    public List<NocemData> example(List<NocemDataDAO> dao) {
    Transaction t = dao.get(0).getSession().beginTransaction();
    List resultList = d.get(0).getSession().createQuery(“from MyTable”).list();
    t.commit();

    return resultList;
    }

    What could be the problem?

    the return type is a List of NocemData — List<NocemData>

    You probably need to change “NocemData” to whatever class your query returns,

    Lee

    #271318 Reply

    chickenlips
    Member

    Thanks for replying.

    Yes, I am using my class. I was using NoCemData as just an example. The problem is not the List<NocemData> as the return type, that was OK.
    The problem is when I changed your (String message) to (List< myClass > message) in the parameter list.
    Maybe a more generic question: Where can I find a list of valid data type that I can use? http://xfire.codehaus.org/Mapping+collections is a good start but it is not complete.

    Chickenlips

Viewing 2 posts - 16 through 17 (of 17 total)
Reply To: Webservice return list/resultset

You must be logged in to post in the forum log in