Saturday 15 June 2013

java - GAE data store not returning entities -


"itemprop =" text ">

I have used objectify to query GAE's datagram I have installed it at least one unit, but I keep getting

"type" : "# ResourcesItem phone", "ETag": "\" air q6YO1YYggaz-ZfT_fl7oeY / pcKQAVaDylr_ZSckRfQAxsphOUU \ ""

}

Here's what the objectify request looks like

  @ApiMethod (name = "queryCalls", path = "queryCalls", httpMethod = HttpMethod.POST) from public list & lt; Call & gt; Query call () {query & lt; Call & gt; Query = ofy () Load (). Type (Call.class) .order ("name"); Return query.list (); }  

The call is clearly the unit that is being used in the class.

Any solution will be most appreciated

Edit Here is the category for reference

  package com.cms.log; Import com.googlecode.objectify.annotation.Entity; Import com.googlecode.objectify.annotation.Id; Import com.googlecode.objectify.annotation.Index; / * Patient Unit * / @Entity Public Class Call {@Id Long Call ID; @ Index string patient; @ Index string doctor; String address 1; String address 2; String address 3; String postcode; String Patient Location; Signs of the @ index string; integer number; @ Index string call time; String current current; Public call (long callId, string patientName, string doctor, string address 1, string address2, string address 3, string postcode, string patientLocation, string trait, integer contactNumber, string callDateTime, string currentStatus) {this.callId = callId; This.patientName = patientName; This.doctor = Doctor; This.address1 = address1; This.address2 = address2; This.address3 = address3; This.postCode = postCode; This.patientLocation = Patient Location; this. Symptoms = symptoms; This.contactNumber = Contact Number; This.callDateTime = callDateTime; This.currentStatus = currentStatus; }; Public long received call () {return callId; } Public Zero Set Collide (Long ID) {this.callId = Id; } Public string getPatientName () {return patientName; } Public Zero Setpatientname (String Patient) {this.patientName = patientName; } Public string getDoctor () {return doctor; } Public zero set doctor (string doctor) {this.doctor = doctor; } Public string getAddress1 () {return address1; } Public Zero Setup 1 (String Address 1) {this.address1 = address1; } Public string getAddress2 () {return address 2; } Public Zero Setup 2 (String Address 2) {this.address2 = address2; } Public string getAddress3 () {return address 3; } Public Zero Setup 3 (String Address 3) {this.address3 = address3; } Public string getPostCode () {return postcode; } Public Zero Set Postcode (String Postcode) {this.postCode = postCode; } Public string getPatientLocation () {return patient location; } Public Zero Setpatient Location (string patient lesson) {this.patientLocation = patient location; } Public string getSymptoms () {Signs of return; } Public Zero Sat Simps (String Symptoms) {this symptoms = symptoms; } Public int getContactNumber () {return contact number; } Public Zero SatContact Number (Int Contact Number) {this.contactNumber = Contact Number; } Public string getCallDateTime () {return callDateTime; } Public Zero Set CallTime (String Called Time) {this.callDateTime = callDateTime; } Public string matching current status () {turn on current status; } Public Zero Set Current Position (String Current Status) {this.currentStatus = currentStatus; }  itemprop = "text"> 

After you have highlighted in your previous comment,

}

}

In order to be able to create an object from Dostastore Institutions to Ostize, you must have a no-RG constructor in the @intext classes.

Once you have sorted, you will be able to order your results by using the @ index ed properties defined in your class.


No comments:

Post a Comment