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

Hibernate example source code file (Task.java)

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

person, person, string, string, task, task

The Hibernate Task.java source code

//$Id: Task.java 7676 2005-07-29 06:27:10Z oneovthafew $
package org.hibernate.test.version;


public class Task {
	private String description;
	private Person person;
	private int version;
	
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	Task() {}
	public Task(String description, Person person) {
		this.description = description;
		this.person = person;
		person.getTasks().add(this);
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
}

Other Hibernate examples (source code examples)

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