/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2010, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
package org.hibernate.test.annotations.dataTypes;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
/**
* TODO : javadoc
*
* @author Steve Ebersole
*/
@Entity
@Access(AccessType.FIELD)
public class SomeOtherEntity {
@Id
protected int id;
protected boolean booleanData;
protected byte byteData;
protected char characterData;
protected short shortData;
protected int integerData;
protected long longData;
protected double doubleData;
protected float floatData;
@Enumerated(EnumType.STRING)
protected Grade grade;
public SomeOtherEntity()
{
}
public SomeOtherEntity(int id)
{
this.id = id;
}
public SomeOtherEntity(
int id,
boolean booleanData,
byte byteData,
char characterData,
short shortData,
int integerData,
long longData,
double doubleData,
float floatData) {
this.id = id;
this.booleanData = booleanData;
this.byteData = byteData;
this.characterData = characterData;
this.shortData = shortData;
this.integerData = integerData;
this.longData = longData;
this.doubleData = doubleData;
this.floatData = floatData;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Character getCharacterData() {
return characterData;
}
public void setCharacterData(Character characterData) {
this.characterData = characterData;
}
public Short getShortData() {
return shortData;
}
public void setShortData(Short shortData) {
this.shortData = shortData;
}
public Integer getIntegerData() {
return integerData;
}
public void setIntegerData(Integer integerData) {
this.integerData = integerData;
}
public Long getLongData() {
return longData;
}
public void setLongData(Long longData) {
this.longData = longData;
}
public Double getDoubleData() {
return doubleData;
}
public void setDoubleData(Double doubleData) {
this.doubleData = doubleData;
}
public Float getFloatData() {
return floatData;
}
public void setFloatData(Float floatData) {
this.floatData = floatData;
}
public Grade getGrade() {
return grade;
}
public void setGrade(Grade grade) {
this.grade = grade;
}
}