http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/db/XXServiceDao.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/db/XXServiceDao.java 
b/security-admin/src/main/java/org/apache/ranger/db/XXServiceDao.java
new file mode 100644
index 0000000..50d1e94
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/db/XXServiceDao.java
@@ -0,0 +1,32 @@
+package org.apache.ranger.db;
+
+import javax.persistence.NoResultException;
+
+import org.apache.ranger.common.db.BaseDao;
+import org.apache.ranger.entity.XXService;
+
+/**
+ */
+
+public class XXServiceDao extends BaseDao<XXService> {
+       /**
+        * Default Constructor
+        */
+       public XXServiceDao(RangerDaoManagerBase daoManager) {
+               super(daoManager);
+       }
+
+       public XXService findByName(String name) {
+               if (name == null) {
+                       return null;
+               }
+               try {
+                       return getEntityManager()
+                                       
.createNamedQuery("XXService.findByName", tClass)
+                                       .setParameter("name", 
name).getSingleResult();
+               } catch (NoResultException e) {
+                       return null;
+               }
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/db/XXServiceDefDao.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/db/XXServiceDefDao.java 
b/security-admin/src/main/java/org/apache/ranger/db/XXServiceDefDao.java
new file mode 100644
index 0000000..1088ba8
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/db/XXServiceDefDao.java
@@ -0,0 +1,30 @@
+package org.apache.ranger.db;
+
+import javax.persistence.NoResultException;
+
+import org.apache.ranger.common.db.BaseDao;
+import org.apache.ranger.entity.XXServiceDef;
+
+public class XXServiceDefDao extends BaseDao<XXServiceDef> {
+       /**
+        * Default Constructor
+        */
+       public XXServiceDefDao(RangerDaoManagerBase daoManager) {
+               super(daoManager);
+       }
+
+       public XXServiceDef findByName(String name) {
+               if (name == null) {
+                       return null;
+               }
+               try {
+                       XXServiceDef xServiceDef = getEntityManager()
+                                       
.createNamedQuery("XXServiceDef.findByName", tClass)
+                                       .setParameter("name", 
name).getSingleResult();
+                       return xServiceDef;
+               } catch (NoResultException e) {
+                       return null;
+               }
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDef.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDef.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDef.java
new file mode 100644
index 0000000..ba2f2d2
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDef.java
@@ -0,0 +1,284 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_access_type_def")
+public class XXAccessTypeDef extends XXDBBase implements java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_access_type_def_SEQ", sequenceName = 
"x_access_type_def_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_access_type_def_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * defId of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "def_id")
+       protected Long defId;
+
+       /**
+        * name of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "name")
+       protected String name;
+
+       /**
+        * label of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "label")
+       protected String label;
+
+       /**
+        * rbKeyLabel of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "rb_key_label")
+       protected String rbKeyLabel;
+
+       /**
+        * order of the XXAccessTypeDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> defId</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param defId
+        *            Value to set member attribute <b> defId</b>
+        */
+       public void setDefid(Long defId) {
+               this.defId = defId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>defId</b>
+        * 
+        * @return Date - value of member attribute <b>defId</b> .
+        */
+       public Long getDefid() {
+               return this.defId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getName() {
+               return this.name;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> label</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param label
+        *            Value to set member attribute <b> label</b>
+        */
+       public void setLabel(String label) {
+               this.label = label;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>label</b>
+        * 
+        * @return Date - value of member attribute <b>label</b> .
+        */
+       public String getLabel() {
+               return this.label;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
rbKeyLabel</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param rbKeyLabel
+        *            Value to set member attribute <b> rbKeyLabel</b>
+        */
+       public void setRbkeylabel(String rbKeyLabel) {
+               this.rbKeyLabel = rbKeyLabel;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>rbKeyLabel</b>
+        * 
+        * @return Date - value of member attribute <b>rbKeyLabel</b> .
+        */
+       public String getRbkeylabel() {
+               return this.rbKeyLabel;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXAccessTypeDef other = (XXAccessTypeDef) obj;
+               if (defId == null) {
+                       if (other.defId != null) {
+                               return false;
+                       }
+               } else if (!defId.equals(other.defId)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (label == null) {
+                       if (other.label != null) {
+                               return false;
+                       }
+               } else if (!label.equals(other.label)) {
+                       return false;
+               }
+               if (name == null) {
+                       if (other.name != null) {
+                               return false;
+                       }
+               } else if (!name.equals(other.name)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (rbKeyLabel == null) {
+                       if (other.rbKeyLabel != null) {
+                               return false;
+                       }
+               } else if (!rbKeyLabel.equals(other.rbKeyLabel)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXAccessTypeDef [" + super.toString() + " id=" + id
+                               + ", defId=" + defId + ", name=" + name + ", 
label=" + label
+                               + ", rbKeyLabel=" + rbKeyLabel + ", order=" + 
order + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDefGrants.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDefGrants.java
 
b/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDefGrants.java
new file mode 100644
index 0000000..118d5d9
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXAccessTypeDefGrants.java
@@ -0,0 +1,176 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_access_type_def_grants")
+public class XXAccessTypeDefGrants extends XXDBBase implements
+               java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXAccessTypeDefGrants
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_access_type_def_grants_SEQ", sequenceName 
= "x_access_type_def_grants_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_access_type_def_grants_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * atdId of the XXAccessTypeDefGrants
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "atd_id")
+       protected Long atdId;
+
+       /**
+        * impliedGrant of the XXAccessTypeDefGrants
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "implied_grant")
+       protected String impliedGrant;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> atdId</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param atdId
+        *            Value to set member attribute <b> atdId</b>
+        */
+       public void setAtdid(Long atdId) {
+               this.atdId = atdId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>atdId</b>
+        * 
+        * @return Date - value of member attribute <b>atdId</b> .
+        */
+       public Long getAtdid() {
+               return this.atdId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
impliedGrant</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param impliedGrant
+        *            Value to set member attribute <b> impliedGrant</b>
+        */
+       public void setImpliedgrant(String impliedGrant) {
+               this.impliedGrant = impliedGrant;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>impliedGrant</b>
+        * 
+        * @return Date - value of member attribute <b>impliedGrant</b> .
+        */
+       public String getImpliedgrant() {
+               return this.impliedGrant;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXAccessTypeDefGrants other = (XXAccessTypeDefGrants) obj;
+               if (atdId == null) {
+                       if (other.atdId != null) {
+                               return false;
+                       }
+               } else if (!atdId.equals(other.atdId)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (impliedGrant == null) {
+                       if (other.impliedGrant != null) {
+                               return false;
+                       }
+               } else if (!impliedGrant.equals(other.impliedGrant)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXAccessTypeDefGrants [" + super.toString() + " id=" + 
id
+                               + ", atdId=" + atdId + ", impliedGrant=" + 
impliedGrant + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXDataHist.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXDataHist.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXDataHist.java
new file mode 100644
index 0000000..776eb74
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/entity/XXDataHist.java
@@ -0,0 +1,474 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import java.util.Date;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.apache.ranger.common.DateUtil;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_data_hist")
+public class XXDataHist implements java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_data_hist_SEQ", sequenceName = 
"x_data_hist_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_data_hist_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * Date/Time creation of this user.
+        * <ul>
+        * </ul>
+        *
+        */
+       @Temporal(TemporalType.TIMESTAMP)
+       @Column(name = "CREATE_TIME")
+       protected Date createTime = DateUtil.getUTCDate();
+
+       /**
+        * Date value.
+        * <ul>
+        * </ul>
+        *
+        */
+       @Temporal(TemporalType.TIMESTAMP)
+       @Column(name = "UPDATE_TIME")
+       protected Date updateTime = DateUtil.getUTCDate();
+
+       /**
+        * version of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "version")
+       protected Long version;
+       
+       /**
+        * type of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "obj_guid")
+       protected String objectGuid;
+
+       /**
+        * type of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "obj_class_type")
+       protected Integer objectClassType;
+
+       /**
+        * type of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "obj_id")
+       protected Long objectId;
+
+       /**
+        * name of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "obj_name")
+       protected String objectName;
+
+       /**
+        * action of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "action")
+       protected String action;
+
+       /**
+        * fromTime of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Temporal(TemporalType.TIMESTAMP)
+       @Column(name = "from_time")
+       protected Date fromTime;
+
+       /**
+        * toTime of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Temporal(TemporalType.TIMESTAMP)
+       @Column(name = "to_time")
+       protected Date toTime;
+
+       /**
+        * content of the XXDataHist
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "content")
+       protected String content;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * @return the createTime
+        */
+       public Date getCreateTime() {
+               return createTime;
+       }
+
+       /**
+        * @param createTime
+        *            the createTime to set
+        */
+       public void setCreateTime(Date createTime) {
+               this.createTime = createTime;
+       }
+
+       /**
+        * @return the updateTime
+        */
+       public Date getUpdateTime() {
+               return updateTime;
+       }
+
+       /**
+        * @param updateTime
+        *            the updateTime to set
+        */
+       public void setUpdateTime(Date updateTime) {
+               this.updateTime = updateTime;
+       }
+       
+       /**
+        * Returns the value for the member attribute <b>version</b>
+        * 
+        * @return Date - value of member attribute <b>version</b> .
+        */
+       public Long getVersion() {
+               return this.version;
+       }
+       
+       /**
+        * This method sets the value to the member attribute <b> version</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param version
+        *            Value to set member attribute <b> version</b>
+        */
+       public void setVersion(Long version) {
+               this.version = version;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> action</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param action
+        *            Value to set member attribute <b> action</b>
+        */
+       public void setAction(String action) {
+               this.action = action;
+       }
+
+       /**
+        * @return the objectGuid
+        */
+       public String getObjectGuid() {
+               return objectGuid;
+       }
+
+       /**
+        * @param objectGuid the objectGuid to set
+        */
+       public void setObjectGuid(String objectGuid) {
+               this.objectGuid = objectGuid;
+       }
+
+       /**
+        * @return the objectId
+        */
+       public Long getObjectId() {
+               return objectId;
+       }
+
+       /**
+        * @param objectId the objectId to set
+        */
+       public void setObjectId(Long objectId) {
+               this.objectId = objectId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> type</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param objectClassType
+        *            Value to set member attribute <b> type</b>
+        */
+       public void setObjectClassType(Integer objectClassType) {
+               this.objectClassType = objectClassType;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>type</b>
+        * 
+        * @return Date - value of member attribute <b>type</b> .
+        */
+       public Integer getObjectClassType() {
+               return this.objectClassType;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setObjectName(String name) {
+               this.objectName = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getObjectName() {
+               return this.objectName;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>action</b>
+        * 
+        * @return Date - value of member attribute <b>action</b> .
+        */
+       public String getAction() {
+               return this.action;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> fromTime</b> 
. You
+        * cannot set null to the attribute.
+        * 
+        * @param fromTime
+        *            Value to set member attribute <b> fromTime</b>
+        */
+       public void setFromTime(Date fromTime) {
+               this.fromTime = fromTime;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>fromTime</b>
+        * 
+        * @return Date - value of member attribute <b>fromTime</b> .
+        */
+       public Date getFromTime() {
+               return this.fromTime;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> toTime</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param toTime
+        *            Value to set member attribute <b> toTime</b>
+        */
+       public void setToTime(Date toTime) {
+               this.toTime = toTime;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>toTime</b>
+        * 
+        * @return Date - value of member attribute <b>toTime</b> .
+        */
+       public Date getToTime() {
+               return this.toTime;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> content</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param content
+        *            Value to set member attribute <b> content</b>
+        */
+       public void setContent(String content) {
+               this.content = content;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>content</b>
+        * 
+        * @return Date - value of member attribute <b>content</b> .
+        */
+       public String getContent() {
+               return this.content;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if ( !super.equals(obj) ) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (obj == null) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXDataHist other = (XXDataHist) obj;
+               if (action == null) {
+                       if (other.action != null) {
+                               return false;
+                       }
+               } else if (!action.equals(other.action)) {
+                       return false;
+               }
+               if (content == null) {
+                       if (other.content != null) {
+                               return false;
+                       }
+               } else if (!content.equals(other.content)) {
+                       return false;
+               }
+               if (createTime == null) {
+                       if (other.createTime != null) {
+                               return false;
+                       }
+               } else if (!createTime.equals(other.createTime)) {
+                       return false;
+               }
+               if (fromTime == null) {
+                       if (other.fromTime != null) {
+                               return false;
+                       }
+               } else if (!fromTime.equals(other.fromTime)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (objectName == null) {
+                       if (other.objectName != null) {
+                               return false;
+                       }
+               } else if (!objectName.equals(other.objectName)) {
+                       return false;
+               }
+               if (toTime == null) {
+                       if (other.toTime != null) {
+                               return false;
+                       }
+               } else if (!toTime.equals(other.toTime)) {
+                       return false;
+               }
+               if (objectClassType == null) {
+                       if (other.objectClassType != null) {
+                               return false;
+                       }
+               } else if (!objectClassType.equals(other.objectClassType)) {
+                       return false;
+               }
+               if (updateTime == null) {
+                       if (other.updateTime != null) {
+                               return false;
+                       }
+               } else if (!updateTime.equals(other.updateTime)) {
+                       return false;
+               }
+               if (version == null) {
+                       if (other.version != null) {
+                               return false;
+                       }
+               } else if (!version.equals(other.version)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXDataHist [id=" + id + ", createTime=" + createTime
+                               + ", updateTime=" + updateTime + ", type=" + 
objectClassType + ", name="
+                               + objectName + ", version=" + version + ", 
action=" + action
+                               + ", fromTime=" + fromTime + ", toTime=" + 
toTime
+                               + ", content=" + content + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXEnumDef.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXEnumDef.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXEnumDef.java
new file mode 100644
index 0000000..aea4f3e
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/entity/XXEnumDef.java
@@ -0,0 +1,212 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_enum_def")
+public class XXEnumDef extends XXDBBase implements java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXEnumDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_enum_def_SEQ", sequenceName = 
"x_enum_def_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_enum_def_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * defId of the XXEnumDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "def_id")
+       protected Long defId;
+
+       /**
+        * name of the XXEnumDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "name")
+       protected String name;
+
+       /**
+        * defaultIndex of the XXEnumDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "default_index")
+       protected Integer defaultIndex;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> defId</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param defId
+        *            Value to set member attribute <b> defId</b>
+        */
+       public void setDefid(Long defId) {
+               this.defId = defId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>defId</b>
+        * 
+        * @return Date - value of member attribute <b>defId</b> .
+        */
+       public Long getDefid() {
+               return this.defId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getName() {
+               return this.name;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
defaultIndex</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param defaultIndex
+        *            Value to set member attribute <b> defaultIndex</b>
+        */
+       public void setDefaultindex(Integer defaultIndex) {
+               this.defaultIndex = defaultIndex;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>defaultIndex</b>
+        * 
+        * @return Date - value of member attribute <b>defaultIndex</b> .
+        */
+       public Integer getDefaultindex() {
+               return this.defaultIndex;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXEnumDef other = (XXEnumDef) obj;
+               if (defId == null) {
+                       if (other.defId != null) {
+                               return false;
+                       }
+               } else if (!defId.equals(other.defId)) {
+                       return false;
+               }
+               if (defaultIndex == null) {
+                       if (other.defaultIndex != null) {
+                               return false;
+                       }
+               } else if (!defaultIndex.equals(other.defaultIndex)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (name == null) {
+                       if (other.name != null) {
+                               return false;
+                       }
+               } else if (!name.equals(other.name)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXEnumDef [" + super.toString() + " id=" + id + ", 
defId="
+                               + defId + ", name=" + name + ", defaultIndex=" 
+ defaultIndex
+                               + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXEnumElementDef.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXEnumElementDef.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXEnumElementDef.java
new file mode 100644
index 0000000..f2522f3
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXEnumElementDef.java
@@ -0,0 +1,285 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_enum_element_def")
+public class XXEnumElementDef extends XXDBBase implements java.io.Serializable 
{
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_enum_def_element_SEQ", sequenceName = 
"x_enum_def_element_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_enum_def_element_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * enumDefId of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "enum_def_id")
+       protected Long enumDefId;
+
+       /**
+        * name of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "name")
+       protected String name;
+
+       /**
+        * label of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "label")
+       protected String label;
+
+       /**
+        * rbKeyLabel of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "rb_key_label")
+       protected String rbKeyLabel;
+
+       /**
+        * order of the XXEnumDefElement
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> enumDefId</b> 
.
+        * You cannot set null to the attribute.
+        * 
+        * @param enumDefId
+        *            Value to set member attribute <b> enumDefId</b>
+        */
+       public void setEnumdefid(Long enumDefId) {
+               this.enumDefId = enumDefId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>enumDefId</b>
+        * 
+        * @return Date - value of member attribute <b>enumDefId</b> .
+        */
+       public Long getEnumdefid() {
+               return this.enumDefId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getName() {
+               return this.name;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> label</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param label
+        *            Value to set member attribute <b> label</b>
+        */
+       public void setLabel(String label) {
+               this.label = label;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>label</b>
+        * 
+        * @return Date - value of member attribute <b>label</b> .
+        */
+       public String getLabel() {
+               return this.label;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
rbKeyLabel</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param rbKeyLabel
+        *            Value to set member attribute <b> rbKeyLabel</b>
+        */
+       public void setRbkeylabel(String rbKeyLabel) {
+               this.rbKeyLabel = rbKeyLabel;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>rbKeyLabel</b>
+        * 
+        * @return Date - value of member attribute <b>rbKeyLabel</b> .
+        */
+       public String getRbkeylabel() {
+               return this.rbKeyLabel;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXEnumElementDef other = (XXEnumElementDef) obj;
+               if (enumDefId == null) {
+                       if (other.enumDefId != null) {
+                               return false;
+                       }
+               } else if (!enumDefId.equals(other.enumDefId)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (label == null) {
+                       if (other.label != null) {
+                               return false;
+                       }
+               } else if (!label.equals(other.label)) {
+                       return false;
+               }
+               if (name == null) {
+                       if (other.name != null) {
+                               return false;
+                       }
+               } else if (!name.equals(other.name)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (rbKeyLabel == null) {
+                       if (other.rbKeyLabel != null) {
+                               return false;
+                       }
+               } else if (!rbKeyLabel.equals(other.rbKeyLabel)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXEnumElementDef [" + super.toString() + " id=" + id
+                               + ", enumDefId=" + enumDefId + ", name=" + name 
+ ", label="
+                               + label + ", rbKeyLabel=" + rbKeyLabel + ", 
order=" + order
+                               + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicy.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicy.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicy.java
new file mode 100644
index 0000000..abbfeb4
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicy.java
@@ -0,0 +1,345 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy")
+public class XXPolicy extends XXDBBase implements java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_SEQ", sequenceName = 
"x_policy_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * Global Id for the object
+        * <ul>
+        * <li>The maximum length for this attribute is <b>512</b>.
+        * </ul>
+        *
+        */
+       @Column(name = "guid", unique = true, nullable = false, length = 512)
+       protected String guid;
+       
+       /**
+        * version of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "version")
+       protected Long version;
+
+       /**
+        * service of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "service")
+       protected Long service;
+
+       /**
+        * name of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "name")
+       protected String name;
+
+       /**
+        * description of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "description")
+       protected String description;
+
+       /**
+        * isEnabled of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "is_enabled")
+       protected boolean isEnabled;
+
+       /**
+        * isAuditEnabled of the XXPolicy
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "is_audit_enabled")
+       protected boolean isAuditEnabled;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * @return the gUID
+        */
+       public String getGuid() {
+               return guid;
+       }
+
+       /**
+        * @param gUID
+        *            the gUID to set
+        */
+       public void setGuid(String gUID) {
+               guid = gUID;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> version</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param version
+        *            Value to set member attribute <b> version</b>
+        */
+       public void setVersion(Long version) {
+               this.version = version;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>version</b>
+        * 
+        * @return Date - value of member attribute <b>version</b> .
+        */
+       public Long getVersion() {
+               return this.version;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> service</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param service
+        *            Value to set member attribute <b> service</b>
+        */
+       public void setService(Long service) {
+               this.service = service;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>service</b>
+        * 
+        * @return Date - value of member attribute <b>service</b> .
+        */
+       public Long getService() {
+               return this.service;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getName() {
+               return this.name;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
description</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param description
+        *            Value to set member attribute <b> description</b>
+        */
+       public void setDescription(String description) {
+               this.description = description;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>description</b>
+        * 
+        * @return Date - value of member attribute <b>description</b> .
+        */
+       public String getDescription() {
+               return this.description;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> isEnabled</b> 
.
+        * You cannot set null to the attribute.
+        * 
+        * @param isEnabled
+        *            Value to set member attribute <b> isEnabled</b>
+        */
+       public void setIsEnabled(boolean isEnabled) {
+               this.isEnabled = isEnabled;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>isEnabled</b>
+        * 
+        * @return Date - value of member attribute <b>isEnabled</b> .
+        */
+       public boolean getIsEnabled() {
+               return this.isEnabled;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
isAuditEnabled</b>
+        * . You cannot set null to the attribute.
+        * 
+        * @param isAuditEnabled
+        *            Value to set member attribute <b> isAuditEnabled</b>
+        */
+       public void setIsAuditEnabled(boolean isAuditEnabled) {
+               this.isAuditEnabled = isAuditEnabled;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>isAuditEnabled</b>
+        * 
+        * @return Date - value of member attribute <b>isAuditEnabled</b> .
+        */
+       public boolean getIsAuditEnabled() {
+               return this.isAuditEnabled;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if(!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicy other = (XXPolicy) obj;
+               if (guid == null) {
+                       if (other.guid != null) {
+                               return false;
+                       }
+               } else if (!guid.equals(other.guid)) {
+                       return false;
+               }
+               if (description == null) {
+                       if (other.description != null) {
+                               return false;
+                       }
+               } else if (!description.equals(other.description)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (isAuditEnabled != other.isAuditEnabled) {
+                       return false;
+               }
+               if (isEnabled != other.isEnabled) {
+                       return false;
+               }
+               if (name == null) {
+                       if (other.name != null) {
+                               return false;
+                       }
+               } else if (!name.equals(other.name)) {
+                       return false;
+               }
+               if (service == null) {
+                       if (other.service != null) {
+                               return false;
+                       }
+               } else if (!service.equals(other.service)) {
+                       return false;
+               }
+               if (version == null) {
+                       if (other.version != null) {
+                               return false;
+                       }
+               } else if (!version.equals(other.version)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicy [" + super.toString() + " id=" + id + ", 
guid=" + guid
+                               + ", version=" + version + ", service=" + 
service + ", name="
+                               + name + ", description=" + description + ", 
isEnabled="
+                               + isEnabled + ", isAuditEnabled=" + 
isAuditEnabled + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyConditionDef.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyConditionDef.java
 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyConditionDef.java
new file mode 100644
index 0000000..4a639cb
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyConditionDef.java
@@ -0,0 +1,432 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy_condition_def")
+public class XXPolicyConditionDef extends XXDBBase implements
+               java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_condition_def_SEQ", sequenceName = 
"x_policy_condition_def_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_condition_def_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * defId of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "def_id")
+       protected Long defId;
+
+       /**
+        * name of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "name")
+       protected String name;
+
+       /**
+        * evaluator of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "evaluator")
+       protected String evaluator;
+
+       /**
+        * evaluatorOptions of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "evaluator_options")
+       protected String evaluatorOptions;
+
+       /**
+        * label of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "label")
+       protected String label;
+
+       /**
+        * description of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "description")
+       protected String description;
+
+       /**
+        * rbKeyLabel of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "rb_key_label")
+       protected String rbKeyLabel;
+
+       /**
+        * rbKeyDescription of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "rb_key_description")
+       protected String rbKeyDescription;
+
+       /**
+        * order of the XXPolicyConditionDef
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> defId</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param defId
+        *            Value to set member attribute <b> defId</b>
+        */
+       public void setDefid(Long defId) {
+               this.defId = defId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>defId</b>
+        * 
+        * @return Date - value of member attribute <b>defId</b> .
+        */
+       public Long getDefid() {
+               return this.defId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> name</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param name
+        *            Value to set member attribute <b> name</b>
+        */
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>name</b>
+        * 
+        * @return Date - value of member attribute <b>name</b> .
+        */
+       public String getName() {
+               return this.name;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> evaluator</b> 
.
+        * You cannot set null to the attribute.
+        * 
+        * @param evaluator
+        *            Value to set member attribute <b> evaluator</b>
+        */
+       public void setEvaluator(String evaluator) {
+               this.evaluator = evaluator;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>evaluator</b>
+        * 
+        * @return Date - value of member attribute <b>evaluator</b> .
+        */
+       public String getEvaluator() {
+               return this.evaluator;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b>
+        * evaluatorOptions</b> . You cannot set null to the attribute.
+        * 
+        * @param evaluatorOptions
+        *            Value to set member attribute <b> evaluatorOptions</b>
+        */
+       public void setEvaluatoroptions(String evaluatorOptions) {
+               this.evaluatorOptions = evaluatorOptions;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>evaluatorOptions</b>
+        * 
+        * @return Date - value of member attribute <b>evaluatorOptions</b> .
+        */
+       public String getEvaluatoroptions() {
+               return this.evaluatorOptions;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> label</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param label
+        *            Value to set member attribute <b> label</b>
+        */
+       public void setLabel(String label) {
+               this.label = label;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>label</b>
+        * 
+        * @return Date - value of member attribute <b>label</b> .
+        */
+       public String getLabel() {
+               return this.label;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
description</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param description
+        *            Value to set member attribute <b> description</b>
+        */
+       public void setDescription(String description) {
+               this.description = description;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>description</b>
+        * 
+        * @return Date - value of member attribute <b>description</b> .
+        */
+       public String getDescription() {
+               return this.description;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
rbKeyLabel</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param rbKeyLabel
+        *            Value to set member attribute <b> rbKeyLabel</b>
+        */
+       public void setRbkeylabel(String rbKeyLabel) {
+               this.rbKeyLabel = rbKeyLabel;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>rbKeyLabel</b>
+        * 
+        * @return Date - value of member attribute <b>rbKeyLabel</b> .
+        */
+       public String getRbkeylabel() {
+               return this.rbKeyLabel;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b>
+        * rbKeyDescription</b> . You cannot set null to the attribute.
+        * 
+        * @param rbKeyDescription
+        *            Value to set member attribute <b> rbKeyDescription</b>
+        */
+       public void setRbkeydescription(String rbKeyDescription) {
+               this.rbKeyDescription = rbKeyDescription;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>rbKeyDescription</b>
+        * 
+        * @return Date - value of member attribute <b>rbKeyDescription</b> .
+        */
+       public String getRbkeydescription() {
+               return this.rbKeyDescription;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicyConditionDef other = (XXPolicyConditionDef) obj;
+               if (defId == null) {
+                       if (other.defId != null) {
+                               return false;
+                       }
+               } else if (!defId.equals(other.defId)) {
+                       return false;
+               }
+               if (description == null) {
+                       if (other.description != null) {
+                               return false;
+                       }
+               } else if (!description.equals(other.description)) {
+                       return false;
+               }
+               if (evaluator == null) {
+                       if (other.evaluator != null) {
+                               return false;
+                       }
+               } else if (!evaluator.equals(other.evaluator)) {
+                       return false;
+               }
+               if (evaluatorOptions == null) {
+                       if (other.evaluatorOptions != null) {
+                               return false;
+                       }
+               } else if (!evaluatorOptions.equals(other.evaluatorOptions)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (label == null) {
+                       if (other.label != null) {
+                               return false;
+                       }
+               } else if (!label.equals(other.label)) {
+                       return false;
+               }
+               if (name == null) {
+                       if (other.name != null) {
+                               return false;
+                       }
+               } else if (!name.equals(other.name)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (rbKeyDescription == null) {
+                       if (other.rbKeyDescription != null) {
+                               return false;
+                       }
+               } else if (!rbKeyDescription.equals(other.rbKeyDescription)) {
+                       return false;
+               }
+               if (rbKeyLabel == null) {
+                       if (other.rbKeyLabel != null) {
+                               return false;
+                       }
+               } else if (!rbKeyLabel.equals(other.rbKeyLabel)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicyConditionDef [id=" + id + ", defId=" + defId
+                               + ", name=" + name + ", evaluator=" + evaluator
+                               + ", evaluatorOptions=" + evaluatorOptions + ", 
label=" + label
+                               + ", description=" + description + ", 
rbKeyLabel=" + rbKeyLabel
+                               + ", rbKeyDescription=" + rbKeyDescription + ", 
order=" + order
+                               + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItem.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItem.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItem.java
new file mode 100644
index 0000000..0c70e73
--- /dev/null
+++ b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItem.java
@@ -0,0 +1,240 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy_item")
+public class XXPolicyItem extends XXDBBase implements java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicyItem
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_item_SEQ", sequenceName = 
"x_policy_item_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_item_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * Global Id for the object
+        * <ul>
+        * <li>The maximum length for this attribute is <b>512</b>.
+        * </ul>
+        *
+        */
+       @Column(name = "guid", unique = true, nullable = false, length = 512)
+       protected String GUID;
+
+       /**
+        * policyId of the XXPolicyItem
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "policy_id")
+       protected Long policyId;
+
+       /**
+        * delegateAdmin of the XXPolicyItem
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "delegate_admin")
+       protected Boolean delegateAdmin;
+
+       /**
+        * order of the XXPolicyItem
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * @return the gUID
+        */
+       public String getGUID() {
+               return GUID;
+       }
+
+       /**
+        * @param gUID
+        *            the gUID to set
+        */
+       public void setGUID(String gUID) {
+               GUID = gUID;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> policyId</b> 
. You
+        * cannot set null to the attribute.
+        * 
+        * @param policyId
+        *            Value to set member attribute <b> policyId</b>
+        */
+       public void setPolicyId(Long policyId) {
+               this.policyId = policyId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>policyId</b>
+        * 
+        * @return Date - value of member attribute <b>policyId</b> .
+        */
+       public Long getPolicyid() {
+               return this.policyId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
delegateAdmin</b>
+        * . You cannot set null to the attribute.
+        * 
+        * @param delegateAdmin
+        *            Value to set member attribute <b> delegateAdmin</b>
+        */
+       public void setDelegateAdmin(Boolean delegateAdmin) {
+               this.delegateAdmin = delegateAdmin;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>delegateAdmin</b>
+        * 
+        * @return Date - value of member attribute <b>delegateAdmin</b> .
+        */
+       public Boolean getDelegateAdmin() {
+               return this.delegateAdmin;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicyItem other = (XXPolicyItem) obj;
+               if (delegateAdmin != other.delegateAdmin) {
+                       return false;
+               }
+               if (GUID == null) {
+                       if (other.GUID != null) {
+                               return false;
+                       }
+               } else if (!GUID.equals(other.GUID)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (policyId == null) {
+                       if (other.policyId != null) {
+                               return false;
+                       }
+               } else if (!policyId.equals(other.policyId)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicyItem [" + super.toString() + " id=" + id + ", 
guid="
+                               + GUID + ", policyId=" + policyId
+                               + ", delegateAdmin=" + delegateAdmin + ", 
order=" + order + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemAccess.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemAccess.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemAccess.java
new file mode 100644
index 0000000..ba2226d
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemAccess.java
@@ -0,0 +1,282 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy_item_access")
+public class XXPolicyItemAccess extends XXDBBase implements
+               java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicyItemAccess
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_item_access_SEQ", sequenceName = 
"x_policy_item_access_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_item_access_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * Global Id for the object
+        * <ul>
+        * <li>The maximum length for this attribute is <b>512</b>.
+        * </ul>
+        *
+        */
+       @Column(name = "guid", unique = true, nullable = false, length = 512)
+       protected String GUID;
+       
+       /**
+        * policyItemId of the XXPolicyItemAccess
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "policy_item_id")
+       protected Long policyItemId;
+
+       /**
+        * type of the XXPolicyItemAccess
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "type")
+       protected Long type;
+
+       /**
+        * isAllowed of the XXPolicyItemAccess
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "is_allowed")
+       protected Boolean isAllowed;
+
+       /**
+        * order of the XXPolicyItemAccess
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * @return the gUID
+        */
+       public String getGUID() {
+               return GUID;
+       }
+
+       /**
+        * @param gUID
+        *            the gUID to set
+        */
+       public void setGUID(String gUID) {
+               GUID = gUID;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
policyItemId</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param policyItemId
+        *            Value to set member attribute <b> policyItemId</b>
+        */
+       public void setPolicyitemid(Long policyItemId) {
+               this.policyItemId = policyItemId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>policyItemId</b>
+        * 
+        * @return Date - value of member attribute <b>policyItemId</b> .
+        */
+       public Long getPolicyitemid() {
+               return this.policyItemId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> type</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param type
+        *            Value to set member attribute <b> type</b>
+        */
+       public void setType(Long type) {
+               this.type = type;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>type</b>
+        * 
+        * @return Date - value of member attribute <b>type</b> .
+        */
+       public Long getType() {
+               return this.type;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> isAllowed</b> 
.
+        * You cannot set null to the attribute.
+        * 
+        * @param isAllowed
+        *            Value to set member attribute <b> isAllowed</b>
+        */
+       public void setIsAllowed(Boolean isAllowed) {
+               this.isAllowed = isAllowed;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>isAllowed</b>
+        * 
+        * @return Date - value of member attribute <b>isAllowed</b> .
+        */
+       public Boolean getIsallowed() {
+               return this.isAllowed;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicyItemAccess other = (XXPolicyItemAccess) obj;
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (isAllowed == null) {
+                       if (other.isAllowed != null) {
+                               return false;
+                       }
+               } else if (!isAllowed.equals(other.isAllowed)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (policyItemId == null) {
+                       if (other.policyItemId != null) {
+                               return false;
+                       }
+               } else if (!policyItemId.equals(other.policyItemId)) {
+                       return false;
+               }
+               if (type == null) {
+                       if (other.type != null) {
+                               return false;
+                       }
+               } else if (!type.equals(other.type)) {
+                       return false;
+               }
+               if (GUID == null) {
+                       if (other.GUID != null) {
+                               return false;
+                       }
+               } else if (!GUID.equals(other.GUID)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicyItemAccess [" + super.toString() + " id=" + id
+                               + ", guid=" + GUID + ", policyItemId="
+                               + policyItemId + ", type=" + type + ", 
isAllowed=" + isAllowed
+                               + ", order=" + order + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemCondition.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemCondition.java
 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemCondition.java
new file mode 100644
index 0000000..bc5275a
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemCondition.java
@@ -0,0 +1,282 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy_item_condition")
+public class XXPolicyItemCondition extends XXDBBase implements
+               java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicyItemCondition
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_item_condition_SEQ", sequenceName = 
"x_policy_item_condition_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_item_condition_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * Global Id for the object
+        * <ul>
+        * <li>The maximum length for this attribute is <b>512</b>.
+        * </ul>
+        *
+        */
+       @Column(name = "guid", unique = true, nullable = false, length = 512)
+       protected String GUID;
+
+       /**
+        * policyItemId of the XXPolicyItemCondition
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "policy_item_id")
+       protected Long policyItemId;
+
+       /**
+        * type of the XXPolicyItemCondition
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "type")
+       protected Long type;
+
+       /**
+        * value of the XXPolicyItemCondition
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "value")
+       protected String value;
+
+       /**
+        * order of the XXPolicyItemCondition
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
policyItemId</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param policyItemId
+        *            Value to set member attribute <b> policyItemId</b>
+        */
+       public void setPolicyItemId(Long policyItemId) {
+               this.policyItemId = policyItemId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>policyItemId</b>
+        * 
+        * @return Date - value of member attribute <b>policyItemId</b> .
+        */
+       public Long getPolicyitemid() {
+               return this.policyItemId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> type</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param type
+        *            Value to set member attribute <b> type</b>
+        */
+       public void setType(Long type) {
+               this.type = type;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>type</b>
+        * 
+        * @return Date - value of member attribute <b>type</b> .
+        */
+       public Long getType() {
+               return this.type;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> value</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param value
+        *            Value to set member attribute <b> value</b>
+        */
+       public void setValue(String value) {
+               this.value = value;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>value</b>
+        * 
+        * @return Date - value of member attribute <b>value</b> .
+        */
+       public String getValue() {
+               return this.value;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /**
+        * @return the gUID
+        */
+       public String getGUID() {
+               return GUID;
+       }
+
+       /**
+        * @param gUID
+        *            the gUID to set
+        */
+       public void setGUID(String gUID) {
+               GUID = gUID;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicyItemCondition other = (XXPolicyItemCondition) obj;
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (policyItemId == null) {
+                       if (other.policyItemId != null) {
+                               return false;
+                       }
+               } else if (!policyItemId.equals(other.policyItemId)) {
+                       return false;
+               }
+               if (type == null) {
+                       if (other.type != null) {
+                               return false;
+                       }
+               } else if (!type.equals(other.type)) {
+                       return false;
+               }
+               if (value == null) {
+                       if (other.value != null) {
+                               return false;
+                       }
+               } else if (!value.equals(other.value)) {
+                       return false;
+               }
+               if (GUID == null) {
+                       if (other.GUID != null) {
+                               return false;
+                       }
+               } else if (!GUID.equals(other.GUID)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicyItemCondition [" + super.toString() + " id=" + 
id
+                               + ", guid=" + GUID + ", policyItemId="
+                               + policyItemId + ", type=" + type + ", value=" 
+ value
+                               + ", order=" + order + "]";
+       }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c928a415/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemGroupPerm.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemGroupPerm.java
 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemGroupPerm.java
new file mode 100644
index 0000000..0c42166
--- /dev/null
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyItemGroupPerm.java
@@ -0,0 +1,213 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ranger.entity;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@Entity
+@Cacheable
+@XmlRootElement
+@Table(name = "x_policy_item_group_perm")
+public class XXPolicyItemGroupPerm extends XXDBBase implements
+               java.io.Serializable {
+       private static final long serialVersionUID = 1L;
+       /**
+        * id of the XXPolicyItemGroupPerm
+        * <ul>
+        * </ul>
+        *
+        */
+       @Id
+       @SequenceGenerator(name = "x_policy_item_group_perm_SEQ", sequenceName 
= "x_policy_item_group_perm_SEQ", allocationSize = 1)
+       @GeneratedValue(strategy = GenerationType.AUTO, generator = 
"x_policy_item_group_perm_SEQ")
+       @Column(name = "id")
+       protected Long id;
+
+       /**
+        * policyItemId of the XXPolicyItemGroupPerm
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "policy_item_id")
+       protected Long policyItemId;
+
+       /**
+        * groupId of the XXPolicyItemGroupPerm
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "group_id")
+       protected Long groupId;
+
+       /**
+        * order of the XXPolicyItemGroupPerm
+        * <ul>
+        * </ul>
+        *
+        */
+       @Column(name = "sort_order")
+       protected Integer order;
+
+       /**
+        * This method sets the value to the member attribute <b> id</b> . You
+        * cannot set null to the attribute.
+        * 
+        * @param id
+        *            Value to set member attribute <b> id</b>
+        */
+       public void setId(Long id) {
+               this.id = id;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>id</b>
+        * 
+        * @return Date - value of member attribute <b>id</b> .
+        */
+       public Long getId() {
+               return this.id;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> 
policyItemId</b> .
+        * You cannot set null to the attribute.
+        * 
+        * @param policyItemId
+        *            Value to set member attribute <b> policyItemId</b>
+        */
+       public void setPolicyItemId(Long policyItemId) {
+               this.policyItemId = policyItemId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>policyItemId</b>
+        * 
+        * @return Date - value of member attribute <b>policyItemId</b> .
+        */
+       public Long getPolicyitemid() {
+               return this.policyItemId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> groupId</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param groupId
+        *            Value to set member attribute <b> groupId</b>
+        */
+       public void setGroupId(Long groupId) {
+               this.groupId = groupId;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>groupId</b>
+        * 
+        * @return Date - value of member attribute <b>groupId</b> .
+        */
+       public Long getGroupid() {
+               return this.groupId;
+       }
+
+       /**
+        * This method sets the value to the member attribute <b> order</b> . 
You
+        * cannot set null to the attribute.
+        * 
+        * @param order
+        *            Value to set member attribute <b> order</b>
+        */
+       public void setOrder(Integer order) {
+               this.order = order;
+       }
+
+       /**
+        * Returns the value for the member attribute <b>order</b>
+        * 
+        * @return Date - value of member attribute <b>order</b> .
+        */
+       public Integer getOrder() {
+               return this.order;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       @Override
+       public boolean equals(Object obj) {
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (this == obj) {
+                       return true;
+               }
+               if (!super.equals(obj)) {
+                       return false;
+               }
+               if (getClass() != obj.getClass()) {
+                       return false;
+               }
+               XXPolicyItemGroupPerm other = (XXPolicyItemGroupPerm) obj;
+               if (groupId == null) {
+                       if (other.groupId != null) {
+                               return false;
+                       }
+               } else if (!groupId.equals(other.groupId)) {
+                       return false;
+               }
+               if (id == null) {
+                       if (other.id != null) {
+                               return false;
+                       }
+               } else if (!id.equals(other.id)) {
+                       return false;
+               }
+               if (order == null) {
+                       if (other.order != null) {
+                               return false;
+                       }
+               } else if (!order.equals(other.order)) {
+                       return false;
+               }
+               if (policyItemId == null) {
+                       if (other.policyItemId != null) {
+                               return false;
+                       }
+               } else if (!policyItemId.equals(other.policyItemId)) {
+                       return false;
+               }
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return "XXPolicyItemGroupPerm [" + super.toString() + " id=" + 
id
+                               + ", policyItemId=" + policyItemId + ", 
groupId=" + groupId
+                               + ", order=" + order + "]";
+       }
+
+}
\ No newline at end of file

Reply via email to