com.alogient.cameleon.sdk.content.dao.model.Nav Maven / Gradle / Ivy
The newest version!
package com.alogient.cameleon.sdk.content.dao.model;
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.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.OrderBy;
/**
* 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 = "Nav")
public class Nav implements Serializable {
/**
* Serial version unique identifier
*/
private static final long serialVersionUID = -3621096640068284425L;
/**
* The primary key for this object
*/
private Integer navId;
/**
* FIXME Add foreign key and element 0, make nullable
* The parent of this navigation item
*/
private Nav parent;
/**
* The children of this navigation item
*/
private Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy