View Javadoc
1   /*
2    * Copyright 2002-2004 the original author or authors.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */ 
16  
17  package net.sf.fridaymvc.sample.hibernate;
18  
19  import java.io.Serializable;
20  
21  import net.sf.fridaymvc.security.accesscontroller.AbstractPermission;
22  
23  /***
24   * @author <a href="mailto:arto.pastinen@ofw.fi">Arto Pastinen</a>
25   * @version $Id: HibernatePermission.java,v 1.1.1.1 2004/11/23 09:36:44 artsi Exp $
26   * @hibernate.class
27   * 		table = "permissions"
28   */
29  
30  public class HibernatePermission extends AbstractPermission implements Serializable {
31      protected Integer permissionUid;
32      
33      /***
34       * 
35       * @hibernate.property 
36       * 		column = "name"
37       * 		not-null = "true"
38       * 		length = "50"
39       * 		unique = "true"
40       */
41      public String getName() {
42          return super.getName();
43      }
44      
45      /***
46       * @return Returns the permissionUid.
47       * @hibernate.id
48       * 		column = "permission_uid"
49       * 		generator-class = "native"
50       * 		unsaved-value = "null"
51       */
52      public Integer getPermissionUid() {
53          return this.permissionUid;
54      }
55      /***
56       * @param permissionUid The permissionUid to set.
57       */
58      public void setPermissionUid(Integer permissionUid) {
59          this.permissionUid = permissionUid;
60      }
61      
62      /***
63       * @hibernate.property 
64       * 		column = "mask"
65       * 		not-null = "true"
66       * 		unique = "true"
67       */
68      public int getMask() {
69          return super.getMask();
70      }
71  }