com.alogient.cameleon.sdk.content.dao.model.OptionCulture Maven / Gradle / Ivy
The newest version!
package com.alogient.cameleon.sdk.content.dao.model;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
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 com.alogient.cameleon.sdk.common.dao.model.Culture;
/**
* The navigation is used to organise the pages into a tree structure. One must
* be carefull not to mistake this navigation into the structure for a menu.
* Altho it can be used as a menu, it is not the recommanded best practice.
*
* @author alord
*/
@Entity
@Table(name = "OptionCulture")
public class OptionCulture implements Serializable {
/**
* Serial version unique identifier
*/
private static final long serialVersionUID = -4709678466435688288L;
/**
* The primary key for this object
*/
private Integer optionCultureId;
/**
* The culture
*/
private Culture culture;
/**
* The associated option
*/
private Option option;
/**
* The display name
*/
private String displayName;
/**
* @return the optionCultureId
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "OptionCultureId", nullable = false)
public Integer getOptionCultureId() {
return optionCultureId;
}
/**
* @param optionCultureId the optionCultureId to set
*/
public void setOptionCultureId(Integer optionCultureId) {
this.optionCultureId = optionCultureId;
}
/**
* @return the culture
*/
@ManyToOne(fetch = FetchType.LAZY, optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "CultureCode", referencedColumnName = "CultureCode")
public Culture getCulture() {
return culture;
}
/**
* @param culture the culture to set
*/
public void setCulture(Culture culture) {
this.culture = culture;
}
/**
* @return the option
*/
@ManyToOne(fetch = FetchType.LAZY, optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "OptionID")
public Option getOption() {
return option;
}
/**
* @param option the option to set
*/
public void setOption(Option option) {
this.option = option;
}
/**
* @return the displayName
*/
@Column(name = "DisplayName", nullable = false)
@Basic(optional = false)
public String getDisplayName() {
return displayName;
}
/**
* @param displayName the displayName to set
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy