package com.aimluck.eip.cayenne.om.account.auto;

import java.util.List;

/**
 * Class _AvzMRole was generated by Cayenne. It is probably a good idea to avoid
 * changing this class manually, since it may be overwritten next time code is
 * regenerated. If you need to make any customizations, please use subclass.
 */
public class _AvzMRole extends org.apache.cayenne.CayenneDataObject {

  public static final String CREATE_DATE_PROPERTY = "createDate";

  public static final String ROLE_NAME_PROPERTY = "roleName";

  public static final String UPDATE_DATE_PROPERTY = "updateDate";

  public static final String AVZ_MUSER_ROLE_ARRAY_PROPERTY =
    "avzMUserRoleArray";

  public static final String ROLE_CODE_PROPERTY = "roleCode";

  public static final String ROLE_ID_PK_COLUMN = "role_id";

  public void setCreateDate(java.util.Date createDate) {
    writeProperty("createDate", createDate);
  }

  public java.util.Date getCreateDate() {
    return (java.util.Date) readProperty("createDate");
  }

  public void setRoleName(String roleName) {
    writeProperty("roleName", roleName);
  }

  public String getRoleName() {
    return (String) readProperty("roleName");
  }

  public void setUpdateDate(java.util.Date updateDate) {
    writeProperty("updateDate", updateDate);
  }

  public java.util.Date getUpdateDate() {
    return (java.util.Date) readProperty("updateDate");
  }

  public void addToAvzMUserRoleArray(
      com.aimluck.eip.cayenne.om.account.AvzMUserRole obj) {
    addToManyTarget("avzMUserRoleArray", obj, true);
  }

  public void removeFromAvzMUserRoleArray(
      com.aimluck.eip.cayenne.om.account.AvzMUserRole obj) {
    removeToManyTarget("avzMUserRoleArray", obj, true);
  }

  public List getAvzMUserRoleArray() {
    return (List) readProperty("avzMUserRoleArray");
  }

  public void setRoleCode(String roleCode) {
    writeProperty("roleCode", roleCode);
  }

  public String getRoleCode() {
    return (String) readProperty("roleCode");
  }
}
