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

Hibernate example source code file (Result.java)

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

result, result, string, string

The Hibernate Result.java source code

package org.hibernate.test.legacy;



public class Result {
	private String name;
	private long amount;
	private long count;
	/**
	 * Returns the amount.
	 * @return long
	 */
	public long getAmount() {
		return amount;
	}

	/**
	 * Returns the count.
	 * @return int
	 */
	public long getCount() {
		return count;
	}

	/**
	 * Returns the name.
	 * @return String
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the amount.
	 * @param amount The amount to set
	 */
	public void setAmount(long amount) {
		this.amount = amount;
	}

	/**
	 * Sets the count.
	 * @param count The count to set
	 */
	public void setCount(long count) {
		this.count = count;
	}

	/**
	 * Sets the name.
	 * @param name The name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public Result(String n, long a, int c) {
		name = n;
		amount = a;
		count = c;
	}
	
	public Result(String n, long a, long c) {
		name = n;
		amount = a;
		count = c;
	}
}

Other Hibernate examples (source code examples)

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