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

Hibernate example source code file (Employee.java)

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

employee, employee, hashset, person, person, set, set, string, string, util

The Hibernate Employee.java source code

// $Id: Employee.java 5899 2005-02-24 20:08:04Z steveebersole $
package org.hibernate.test.subclassfilter;
import java.util.HashSet;
import java.util.Set;

/**
 * Implementation of Employee.
 *
 * @author Steve Ebersole
 */
public class Employee extends Person {
    private String title;
	private String department;
	private Employee manager;
	private Set minions = new HashSet();

	public Employee() {
	}

	public Employee(String name) {
		super( name );
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public Employee getManager() {
		return manager;
	}

	public void setManager(Employee manager) {
		this.manager = manager;
	}

	public Set getMinions() {
		return minions;
	}

	public void setMinions(Set minions) {
		this.minions = minions;
	}
}

Other Hibernate examples (source code examples)

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