View Javadoc

1   package com.germinus.merlin.model;
2   
3   // Generated 15-ene-2008 12:57:02 by Hibernate Tools 3.2.0.CR1
4   
5   import javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.FetchType;
8   import javax.persistence.GeneratedValue;
9   import javax.persistence.Id;
10  import javax.persistence.JoinColumn;
11  import javax.persistence.ManyToOne;
12  import javax.persistence.Table;
13  
14  import org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * Advise generated by hbm2java
18   */
19  @Entity
20  @Table(name = "Pages")
21  public class Page implements java.io.Serializable {
22  
23  	/**
24  	 * @author David Jiménez, Germinus XXI
25  	 * @since 1.0
26  	*/
27  	private static final long serialVersionUID = -1283948353836673284L;
28  	/**
29  	 * @author David Jiménez, Germinus XXI
30  	 * @since 1.0
31  	*/
32  	private long id;
33  	private Course course;
34  	private long ancestorLayoutPlid;
35  	private String forumPageUrl;
36  	private String blogPageUrl;
37  	private String documentPageUrl;
38  
39  	public Page() {
40  	}
41  
42  	public Page(long id, Course course, long ancestorLayoutPlid,
43  			String forumPageUrl, String blogPageUrl) {
44  		super();
45  		this.id = id;
46  		this.course = course;
47  		this.ancestorLayoutPlid = ancestorLayoutPlid;
48  		this.forumPageUrl = forumPageUrl;
49  		this.blogPageUrl = blogPageUrl;
50  	}
51  
52  	/**
53  	 * @return the id
54  	 */
55  	@Id @GeneratedValue(generator="system-increment")
56  	@GenericGenerator(name="system-increment", strategy = "increment")
57  	@Column(name = "pageid", unique = true, nullable = false)
58  	public long getId() {
59  		return id;
60  	}
61  	
62  	/**
63  	 * @param id the id to set
64  	 */
65  	public void setId(long id) {
66  		this.id = id;
67  	}
68  
69  	@ManyToOne(fetch = FetchType.LAZY)
70  	@JoinColumn(name = "courseid", nullable = false)
71  	public Course getCourse() {
72  		return this.course;
73  	}
74  
75  	public void setCourse(Course course) {
76  		this.course = course;
77  	}
78  
79  	/**
80  	 * @return the forumPageUrl
81  	 */
82  	@Column(name = "forumPage")
83  	public String getForumPageUrl() {
84  		return forumPageUrl;
85  	}
86  
87  	/**
88  	 * @param forumPageUrl the forumPageUrl to set
89  	 */
90  	public void setForumPageUrl(String forumPageUrl) {
91  		this.forumPageUrl = forumPageUrl;
92  	}
93  
94  	/**
95  	 * @return the blogPageUrl
96  	 */
97  	@Column(name = "blogPage")
98  	public String getBlogPageUrl() {
99  		return blogPageUrl;
100 	}
101 
102 	/**
103 	 * @param blogPageUrl the blogPageUrl to set
104 	 */
105 	public void setBlogPageUrl(String blogPageUrl) {
106 		this.blogPageUrl = blogPageUrl;
107 	}
108 
109 	/**
110 	 * @return the ancestorLayoutPlid
111 	 */
112 	@Column(name = "ancestorLayoutPlid")
113 	public long getAncestorLayoutPlid() {
114 		return ancestorLayoutPlid;
115 	}
116 
117 	/**
118 	 * @param ancestorLayoutPlid the ancestorLayoutPlid to set
119 	 */
120 	public void setAncestorLayoutPlid(long ancestorLayoutPlid) {
121 		this.ancestorLayoutPlid = ancestorLayoutPlid;
122 	}
123 
124 	/**
125 	 * @return the documentPageUrl
126 	 */
127 	@Column(name = "documentPageUrl")
128 	public String getDocumentPageUrl() {
129 		return documentPageUrl;
130 	}
131 
132 	/**
133 	 * @param documentPageUrl the documentPageUrl to set
134 	 */
135 	public void setDocumentPageUrl(String documentPageUrl) {
136 		this.documentPageUrl = documentPageUrl;
137 	}
138 
139 }