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

Hibernate example source code file (C2.java)

This example Hibernate source code file (C2.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, b, b, c1, c1, c2, collection, collection, string, string, util

The Hibernate C2.java source code

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

public class C2 extends B {
	private String address;
	private C1 c1;
	private String c2Name;
	private Collection c1s = new ArrayList();
	/**
	 * Returns the address.
	 * @return String
	 */
	public String getAddress() {
		return address;
	}
	
	/**
	 * Sets the address.
	 * @param address The address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	
	/**
	 * @return Returns the c.
	 */
	public C1 getC1() {
		return c1;
	}

	/**
	 * @param c The c to set.
	 */
	public void setC1(C1 c) {
		this.c1 = c;
	}

	/**
	 * @return Returns the cs.
	 */
	public Collection getC1s() {
		return c1s;
	}

	/**
	 * @param cs The cs to set.
	 */
	public void setC1s(Collection cs) {
		this.c1s = cs;
	}

	public String getC2Name() {
		return c2Name;
	}

	public void setC2Name(String name) {
		c2Name = name;
	}
}






Other Hibernate examples (source code examples)

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