/* * $Id: Employee.java 319 2010-02-09 02:33:41Z lhoriman $ $URL: * https://subetha * .googlecode.com/svn/branches/resin/rtest/src/org/subethamail/rtest * /util/BeanMixin.java $ */ package com.googlecode.objectify.test.entity; import javax.persistence.Id; import com.googlecode.objectify.Key; import com.googlecode.objectify.annotation.Cached; /** * An employee with a key for a Many to one test case. * * @author Jeff Schnitzer <jeff@infohazard.org> * @author Jon Stevens */ @Cached public class Employee { @Id public String name; public Key<Employee> manager; /** Default constructor must always exist */ public Employee() {} /** set a name */ public Employee(String name) { this.name = name; } /** set a name and manager */ public Employee(String name, Key<Employee> manager) { this.name = name; this.manager = manager; } /** */ public String getName() { return this.name; } }