Gift.java 871 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
package jp.agentec.sinaburocast.entity;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

@Entity
@Table(name="m_gift")
public class Gift extends AbstractEntity {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	@Column(name = "gift_id")
	public Integer giftId;

	@Column(name = "gift_name")
	public String giftName;

	@Column(name = "required_point")
	public Integer requiredPoint;
35 36 37
	
	@Column(name = "gift_type")
	public Integer giftType;
Kim Gyeongeun committed
38 39 40 41 42

	@OneToMany(mappedBy = "gift")
	public List<GiftExchange> giftExchange;

}