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

Hibernate example source code file (Holder.java)

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

foo, foo, holder, holder, list, named, set, set, string, string, util

The Hibernate Holder.java source code

//$Id: Holder.java 4599 2004-09-26 05:18:27Z oneovthafew $
package org.hibernate.test.legacy;
import java.util.List;
import java.util.Set;

public class Holder implements Named {
	private String id;
	private List ones;
	private Foo[] fooArray;
	private Set foos;
	private String name;
	private Holder otherHolder;
	
	public Holder() {
	}
	public Holder(String name) {
		this.name=name;
	}
	
	/**
	 * Returns the fooArray.
	 * @return Foo[]
	 */
	public Foo[] getFooArray() {
		return fooArray;
	}
	
	/**
	 * Returns the foos.
	 * @return Set
	 */
	public Set getFoos() {
		return foos;
	}
	
	/**
	 * Sets the fooArray.
	 * @param fooArray The fooArray to set
	 */
	public void setFooArray(Foo[] fooArray) {
		this.fooArray = fooArray;
	}
	
	/**
	 * Sets the foos.
	 * @param foos The foos to set
	 */
	public void setFoos(Set foos) {
		this.foos = foos;
	}
	
	/**
	 * Returns the id.
	 * @return String
	 */
	public String getId() {
		return id;
	}
	
	/**
	 * Sets the id.
	 * @param id The id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * Returns the name.
	 * @return String
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Sets the name.
	 * @param name The name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * Returns the ones.
	 * @return List
	 */
	public List getOnes() {
		return ones;
	}
	
	/**
	 * Sets the ones.
	 * @param ones The ones to set
	 */
	public void setOnes(List ones) {
		this.ones = ones;
	}
	
	public Holder getOtherHolder() {
		return otherHolder;
	}

	public void setOtherHolder(Holder holder) {
		otherHolder = holder;
	}

}






Other Hibernate examples (source code examples)

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