/* * $Id: Holder.java 319 2010-02-09 02:33:41Z lhoriman $ * $URL: https://objectify-appengine.googlecode.com/svn/trunk/src/com/googlecode/objectify/test/entity/Holder.java $ */ package com.googlecode.objectify.test.entity; import javax.persistence.Id; import com.googlecode.objectify.annotation.Cached; /** * A holder of a <T>hing. * * @author Scott Hernandez */ @Cached public abstract class Holder<T> { @Id Long id; T thing; /** Default constructor must always exist */ protected Holder() {} protected Holder(T t) {this.thing = t;} public T getThing() { return this.thing; } public void setThing(T t) { this.thing = t; } }