1
//$Id: Furniture.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
2
package org.hibernate.test.annotations.access;
4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.Id;
7
import javax.persistence.Transient;
9
import org.hibernate.annotations.AccessType;
12
* @author Emmanuel Bernard
16
public class Furniture extends Woody {
24
public String getBrand() {
28
public void setBrand(String brand) {
32
public Integer getId() {
36
public void setId(Integer id) {
41
@AccessType("property")
44
public long getWeight() {
48
public void setWeight(long weight) {
49
this.weight = weight + 1;