package com.bcxin.risk.survey.domain;

import com.bcxin.risk.base.domain.BaseBean;
import com.bcxin.risk.user.domain.User;
import lombok.Data;

import javax.persistence.*;

/**
 * 查勘反馈
 * @author luopeng
 *
 */
@Entity
@Table(name = "RISK_FeedBack_Expert")
@Inheritance(strategy = InheritanceType.JOINED)
@Data
public class FeedBack_Expert extends BaseBean{

	 
	private static final long serialVersionUID = 1L;

	@ManyToOne(targetEntity = Survey_FeedBack.class, fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
	@JoinColumn(name = "feedBackId")
	private Survey_FeedBack survey_FeedBack;

	@ManyToOne(targetEntity = User.class, fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
	@JoinColumn(name = "expertId")
	private User user;


}
