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

Hibernate example source code file (Person.java)

This example Hibernate source code file (Person.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, arraylist, list, list, person, person, string, string, util

The Hibernate Person.java source code

//$Id: Person.java 7676 2005-07-29 06:27:10Z oneovthafew $
package org.hibernate.test.version;
import java.util.ArrayList;
import java.util.List;

public class Person {
	private String name;
	private List things;
	private List tasks;
	private int version;
	
	Person() {}
	public Person(String name) {
		this.name = name;
		this.things = new ArrayList();
		this.tasks = new ArrayList();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List getThings() {
		return things;
	}
	public void setThings(List things) {
		this.things = things;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public List getTasks() {
		return tasks;
	}
	public void setTasks(List tasks) {
		this.tasks = tasks;
	}
}

Other Hibernate examples (source code examples)

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