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

com.googlecode.objectify.test.entity.Banana 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: Banana.java 319 2010-02-09 02:33:41Z lhoriman $
 * $URL: https://objectify-appengine.googlecode.com/svn/trunk/src/com/googlecode/objectify/test/entity/Banana.java $
 */

package com.googlecode.objectify.test.entity;

import com.googlecode.objectify.annotation.Cached;


/**
 * A banana fruit.
 * 
 * @author Scott Hernandez
 */
@Cached
public class Banana extends Fruit
{
	public static final String COLOR = "yellow";
	public static final String TASTE = "sweet";
	
	private String shape;
	
	/** Default constructor must always exist */
	public Banana() {}
	
	/** Constructor*/
	public Banana(String color, String taste)
	{
		super(color,taste);
		this.shape = "like a banana";
	}
	
	public String getShape() 
	{
		return this.shape;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy