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

Hibernate example source code file (Widget.java)

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

integer, integer, string, string, widget, widget

The Hibernate Widget.java source code

package org.hibernate.test.typeparameters;


/**
 * @author Michael Gloegl
 */
public class Widget {

	private int valueOne = 1;
	private int valueTwo = 2;
	private int valueThree = -1;
	private int valueFour = -5;
	private Integer id;
	private String string;

	public int getValueOne() {
		return valueOne;
	}

	public void setValueOne(int valueOne) {
		this.valueOne = valueOne;
	}

	public int getValueThree() {
		return valueThree;
	}

	public void setValueThree(int valueThree) {
		this.valueThree = valueThree;
	}

	public int getValueTwo() {
		return valueTwo;
	}

	public void setValueTwo(int valueTwo) {
		this.valueTwo = valueTwo;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getString() {
		return string;
	}

	public void setString(String string) {
		this.string = string;
	}

	public int getValueFour() {
		return valueFour;
	}

	public void setValueFour(int valueFour) {
		this.valueFour = valueFour;
	}
}

Other Hibernate examples (source code examples)

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