package com.bcxin.risk.user.domain;

import com.bcxin.risk.org.domain.ServiceOrg;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 
 * <b>Function 服务机构用户</b>
 * 
 * @author LuoPeng
 * @date 2016年12月26日 下午2:39:34
 * @注意事项 </b>
 * <b>
 */
@Entity
@Table(name = "RISK_SERVICEORGUSER")
@Inheritance(strategy = InheritanceType.JOINED)@Data
@DynamicInsert(true)
@DynamicUpdate(true)
public class ServiceOrgUser extends User {

	private static final long serialVersionUID = 1L;

	@ManyToOne(targetEntity = ServiceOrg.class, fetch = FetchType.LAZY)
	@JoinColumn(name = "org_id")
	private ServiceOrg serviceOrg; //所属机构


}
