alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (Being.java)

This example Hibernate source code file (Being.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Hibernate tags/keywords

arraylist, being, hashmap, list, list, location, location, map, map, string, string, util

The Hibernate Being.java source code

//$Id: Being.java 6007 2005-03-04 12:01:43Z oneovthafew $
package org.hibernate.test.unionsubclass;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Gavin King
 */
public abstract class Being {
	private long id;
	private String identity;
	private Location location;
	private List things = new ArrayList();
	private Map info = new HashMap();
	/**
	 * @return Returns the id.
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return Returns the identity.
	 */
	public String getIdentity() {
		return identity;
	}
	/**
	 * @param identity The identity to set.
	 */
	public void setIdentity(String identity) {
		this.identity = identity;
	}
	/**
	 * @return Returns the location.
	 */
	public Location getLocation() {
		return location;
	}
	/**
	 * @param location The location to set.
	 */
	public void setLocation(Location location) {
		this.location = location;
	}
	public String getSpecies() {
		return null;
	}

	public List getThings() {
		return things;
	}
	public void setThings(List things) {
		this.things = things;
	}
	public Map getInfo() {
		return info;
	}
	
	public void setInfo(Map info) {
		this.info = info;
	}
	
}

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate Being.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.