package info.ozkan.vipera.entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
/**
* Hekim bildirim ayarlarını tanımlayan domain model
*
* @author Ömer Özkan
*
*/
@Entity
@Table(name = "DOCTOR_NOTIFICATION_SETTINGS")
public class DoctorNotificationSetting implements Serializable {
/**
* Serial
*/
private static final long serialVersionUID = 5214922230279364173L;
/**
* Id
*/
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id;
/**
* Hekim
*/
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "doctor_id")
@Cascade(CascadeType.SAVE_UPDATE)
private Doctor doctor;
/**
* bildirim Id
*/
@Column(name = "provider_id")
private String providerId;
/**
* aktiflik
*/
@Column(name = "enabled")
private Boolean enabled;
/**
* @return the doctor
*/
public Doctor getDoctor() {
return doctor;
}
/**
* @param doctor
* the doctor to set
*/
public void setDoctor(final Doctor doctor) {
this.doctor = doctor;
}
/**
* @return the providerId
*/
public String getProviderId() {
return providerId;
}
/**
* @param providerId
* the providerId to set
*/
public void setProviderId(final String providerId) {
this.providerId = providerId;
}
/**
* @return the enabled
*/
public Boolean getEnabled() {
return enabled;
}
/**
* @param enabled
* the enabled to set
*/
public void setEnabled(final Boolean enabled) {
this.enabled = enabled;
}
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
}