All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.objectify.test.entity.Holder Maven / Gradle / Ivy

Go to download

*** 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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy