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

Hibernate example source code file (ComponentNotNull.java)

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

componentnotnull, componentnotnull, string, string

The Hibernate ComponentNotNull.java source code

//$Id: ComponentNotNull.java 4599 2004-09-26 05:18:27Z oneovthafew $
package org.hibernate.test.legacy;


/**
 * Component used to check not-null sub properties management
 * 
 * @author Emmanuel Bernard
 */
public class ComponentNotNull {
	/* 
	 * I've flatten several components in one class, this is kind of ugly but
 	 * I don't have to write tons of classes
 	 */
	private String prop1Nullable;
	private String prop2Nullable;
	private ComponentNotNull supercomp;
	private ComponentNotNull subcomp;
	private String prop1Subcomp;

	/**
	 * @return
	 */
	public String getProp1Nullable() {
		return prop1Nullable;
	}

	/**
	 * @return
	 */
	public String getProp1Subcomp() {
		return prop1Subcomp;
	}

	/**
	 * @return
	 */
	public String getProp2Nullable() {
		return prop2Nullable;
	}

	/**
	 * @return
	 */
	public ComponentNotNull getSubcomp() {
		return subcomp;
	}

	/**
	 * @return
	 */
	public ComponentNotNull getSupercomp() {
		return supercomp;
	}

	/**
	 * @param string
	 */
	public void setProp1Nullable(String string) {
		prop1Nullable = string;
	}

	/**
	 * @param string
	 */
	public void setProp1Subcomp(String string) {
		prop1Subcomp = string;
	}

	/**
	 * @param string
	 */
	public void setProp2Nullable(String string) {
		prop2Nullable = string;
	}

	/**
	 * @param null1
	 */
	public void setSubcomp(ComponentNotNull null1) {
		subcomp = null1;
	}

	/**
	 * @param null1
	 */
	public void setSupercomp(ComponentNotNull null1) {
		supercomp = null1;
	}

}

Other Hibernate examples (source code examples)

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