<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="com.jsh.model.po.Basicuser" table="ams_t_basicuser">
        <id name="id" type="java.lang.Long">
            <column name="id" />
            <generator class="native" />
        </id>
        <property name="username" type="java.lang.String">
            <column name="username" not-null="true">
                <comment>用户姓名--例如张三</comment>
            </column>
        </property>
        <property name="loginame" type="java.lang.String">
            <column name="loginame">
                <comment>登录用户名--可能为空</comment>
            </column>
        </property>
        <property name="password" type="java.lang.String">
            <column name="password" length="30" not-null="true">
                <comment>登陆密码</comment>
            </column>
        </property>
        <property name="position" type="java.lang.String">
            <column name="position" length="200">
                <comment>职位</comment>
            </column>
        </property>
        <property name="department" type="java.lang.String">
            <column name="department">
                <comment>所属部门</comment>
            </column>
        </property>
        <property name="email" type="java.lang.String">
            <column name="email" length="100">
                <comment>电子邮箱</comment>
            </column>
        </property>
        <property name="phonenum" type="java.lang.String">
            <column name="phonenum" length="100">
                <comment>手机号码</comment>
            </column>
        </property>
        <property name="ismanager" type="java.lang.Short">
            <column name="ismanager" not-null="true">
                <comment>是否为管理者 0==管理者 1==员工</comment>
            </column>
        </property>
        <property name="isystem" type="java.lang.Short">
            <column name="isystem" not-null="true">
                <comment>是否系统自带数据</comment>
            </column>
        </property>
        <property name="status" type="java.lang.Short">
            <column name="status">
                <comment>用户状态</comment>
            </column>
        </property>
        <property name="description" type="java.lang.String">
            <column name="description" length="500">
                <comment>用户描述信息</comment>
            </column>
        </property>
        <property name="remark" type="java.lang.String">
            <column name="remark" length="500" />
        </property>
    </class>
</hibernate-mapping>
