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

Hibernate example source code file (X.java)

This example Hibernate source code file (X.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, list, long, long, util, x, x, xx, xx, y, y

The Hibernate X.java source code

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


public class X {

	private long id;
	private Y y;
	private List xxs = new ArrayList();

	/**
	 * Returns the id.
	 * @return long
	 */
	public long getId() {
		return id;
	}

	/**
	 * Returns the y.
	 * @return Y
	 */
	public Y getY() {
		return y;
	}

	/**
	 * Sets the id.
	 * @param id The id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * Sets the y.
	 * @param y The y to set
	 */
	public void setY(Y y) {
		this.y = y;
	}
	
	public List getXxs() {
		return xxs;
	}

	public void setXxs(List xxs) {
		this.xxs = xxs;
	}

	public static class XX {
		private Long id;
		private X x;
		private XX() {}
		public XX(X x) {
			this.x = x;
		}
		public Long getId() {
			return id;
		}

		public void setId(Long id) {
			this.id = id;
		}

		public X getX() {
			return x;
		}

		public void setX(X x) {
			this.x = x;
		}

	}

}

Other Hibernate examples (source code examples)

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