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

Hibernate example source code file (Thing.java)

This example Hibernate source code file (Thing.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

being, being, string, string, thing, thing

The Hibernate Thing.java source code

//$Id: Thing.java 4418 2004-08-22 13:38:16Z oneovthafew $
package org.hibernate.test.unionsubclass;


/**
 * @author Gavin King
 */
public class Thing {
	private long id;
	private String description;
	private Being owner;
	/**
	 * @return Returns the description.
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description The description to set.
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @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 owner.
	 */
	public Being getOwner() {
		return owner;
	}
	/**
	 * @param owner The owner to set.
	 */
	public void setOwner(Being owner) {
		this.owner = owner;
	}
}

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate Thing.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.