/* * $Id: Fruit.java 319 2010-02-09 02:33:41Z lhoriman $ * $URL: https://objectify-appengine.googlecode.com/svn/trunk/src/com/googlecode/objectify/test/entity/Fruit.java $ */ package com.googlecode.objectify.test.entity; import javax.persistence.Id; import com.googlecode.objectify.annotation.Cached; /** * A fruit. * * @author Scott Hernandez */ @Cached public abstract class Fruit { @Id Long id; String color; String taste; /** Default constructor must always exist */ protected Fruit() {} /** Constructor*/ protected Fruit(String color, String taste) { this.color = color; this.taste = taste; } public String getColor() { return this.color; } public String getTaste() { return this.taste; } }