I have two entity model Student and attendance such that each attendance entity has associated student parent.
Attendance model:
@Entity
Just wanted to add to konqi's answer based on comments:
If you are using Cloud Endpoints with Android Studio you must first switch to "project" view in your navigation panel, then navigate to your "backend" folder then src->main->webapp->WEB-INF and then in that folder you must manually create a datastore-indexes.xml file. Here is what yours would look like: