Unable to generate cloud endpoint class

隐身守侯 提交于 2019-12-05 08:56:43

The instructions as provided by Google are confusing. What the instructions intended to say is after creating CheckIn.java, right-click on the CheckIn.java file and select Google->Generate Cloud Endpoint Class. This will then automatically create the CheckInEndpoint.java file.

Read through the entire "Entity Design Class Pattern" paragraph as given in the link you provided. You'll recognise that their instructions are ambiguous and is actually meant to be carried out from point 6.

Try adding this annotation to your CheckIn class:

import javax.jdo.annotations.PersistenceCapable;

@PersistenceCapable
public class CheckIn ...

This way it will find it as a JDO entity class and it will generate your CheckInEndPoint class.

I had the same error, I have first renamed the class CheckInEndPoint I've created manually to avoid any kind of conflicts. After that I have right clicked on

CheckIn class -> Google ->Generate Cloud Endpoint Class.

If you get some dependencies errors, please try check whether all the classes like ApiKeysAndIds.java, UserAccount.java are in the package.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!