com.googlecode.objectify.test.entity.Holder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
/*
* $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 hing.
*
* @author Scott Hernandez
*/
@Cached
public abstract class Holder
{
@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;
}
}