1
2
3
4 package org.marketchangers.prayer;
5
6 /***
7 * All objects that need to be persisted should extend this class.
8 * Hibernate highly recommends that all persisted objects should contain an id field
9 * and that it should be a nullable (i.e. non-primative) type.
10 * @author Jason Williams
11 */
12 public class PersistentObject {
13
14 protected Integer id = null;
15
16 /***
17 * @hibernate.id generator-class="native"
18 * @return
19 */
20 public Integer getId() {
21 return id;
22 }
23
24 /***
25 * @param int1
26 */
27 public void setId(Integer int1) {
28 id = int1;
29 }
30
31 }