package com.desklampstudios.edab;

import java.util.List;

import com.desklampstudios.edab.School.Team;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.googlecode.objectify.Ref;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.annotation.Load;

@Entity
class User {
	class LoadCourses { }
	
	enum Gender { MALE, FEMALE, OTHER }
	
	@Id String id; // same as fcps_id
	@Index public String name;
	public String real_name;
	@Load @Index Ref<Team> team;
	@Load(LoadCourses.class) @Index List<Ref<Course>> courses;
	@Index public String fcps_id;
	Gender gender;
	
	@JsonGetter
	public String gender() {
		if (this.gender != null) {
			return this.gender.toString();
		} else {
			return null;
		}
	}
}
@@ -492,21 +492,19 @@
  // 
-same as fcps_
+google user
 id%0A%09
@@ -561,21 +561,8 @@
 e;%0A%09
-@Load @Index 
 Ref%3C
@@ -663,16 +663,46 @@
 fcps_id;
+ // fcpsschools.net user email
 %0A%09Gender
@@ -848,9 +848,10 @@
 %0A%09%09%7D%0A%09%7D%0A
-
 %7D
+%0A

Update User.java