PointDonation.java 890 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 35 36 37
package jp.agentec.sinaburocast.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_point_donation")
public class PointDonation extends AbstractEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "point_donation_id")
	public Integer pointDonationId;

	@Column(name = "member_id")
	public Integer memberId;

	@Column(name = "organization_id")
	public Integer organizationId;

	@Column(name = "point_num")
	public Integer pointNum;

    @ManyToOne
    @JoinColumn(name = "member_id", referencedColumnName = "member_id")
	public Member member;

    @ManyToOne
    @JoinColumn(name = "organization_id", referencedColumnName = "organization_id")
	public Organization organization;


}