/*******************************************************************************
* Copyright (c) 2007-2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributor:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package test.annotated.fields;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Version;
@Entity
public class Foto {
protected Long fid;
@Id @GeneratedValue
protected Short id;
@OneToOne(mappedBy="foto")
protected Person person;
protected Short width_IDtest;
protected Short height_testID;
@javax.persistence.Version
protected Date version;
public Foto() {
}
public Long getFid() {
return fid;
}
public void setFid(Long fid) {
this.fid = fid;
}
public Short getId() {
return id;
}
public void setId(Short id) {
this.id = id;
}
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
public Short getWidth_IDtest() {
return width_IDtest;
}
public void setWidth_IDtest(Short width_IDtest) {
this.width_IDtest = width_IDtest;
}
public Short getHeight_testID() {
return height_testID;
}
public void setHeight_testID(Short height_testID) {
this.height_testID = height_testID;
}
}