85 lines
3.1 KiB
Plaintext
85 lines
3.1 KiB
Plaintext
|
|
<?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 auto-import="false">
|
||
|
|
<class name="com.nationalelectric.greenH5.po.GreenNotice" table="green_notice">
|
||
|
|
<comment>green_notice</comment>
|
||
|
|
<!-- single primaryKey -->
|
||
|
|
<id name="id" type="java.lang.Long">
|
||
|
|
<column name="ID" length="19"/>
|
||
|
|
<generator class="org.hibernate.id.enhanced.TableGenerator">
|
||
|
|
<param name="table_name">green_seq</param>
|
||
|
|
<param name="segment_column_name">table_name</param>
|
||
|
|
<param name="value_column_name">max_id</param>
|
||
|
|
<param name="segment_value">GREEN_NOTICE</param>
|
||
|
|
<param name="initial_value">10000</param>
|
||
|
|
</generator>
|
||
|
|
</id>
|
||
|
|
|
||
|
|
<property name="title" type="string" length="50" not-null="false">
|
||
|
|
<column name="TITLE">
|
||
|
|
<comment>标题</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="text" type="string" length="200" not-null="false">
|
||
|
|
<column name="TEXT">
|
||
|
|
<comment>内容</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="url" type="string" length="50" not-null="false">
|
||
|
|
<column name="URL">
|
||
|
|
<comment>链接</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="userId" type="string" length="50" not-null="false">
|
||
|
|
<column name="USER_ID">
|
||
|
|
<comment>通知用户的id</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="readStatus" type="integer" not-null="false">
|
||
|
|
<column name="READ_STATUS" sql-type="INTEGER default 0">
|
||
|
|
<comment>是否已读 0未读 1已读</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="readTime" type="java.util.Date" not-null="false">
|
||
|
|
<column name="READ_TIME">
|
||
|
|
<comment>读取时间</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="delayedStatus" type="integer" not-null="false">
|
||
|
|
<column name="DELAYED_STATUS" sql-type="INTEGER default 0">
|
||
|
|
<comment>是否延时提醒 0否 1是</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="delayedTime" type="java.util.Date" not-null="false">
|
||
|
|
<column name="DELAYED_TIME">
|
||
|
|
<comment>延时提醒时间</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="createTime" type="java.util.Date" not-null="false">
|
||
|
|
<column name="CREATE_TIME">
|
||
|
|
<comment>创建时间</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="createBy" type="string" length="50" not-null="false">
|
||
|
|
<column name="CREATE_BY">
|
||
|
|
<comment>创建人</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
<property name="isDeleted" type="string" length="255" not-null="false">
|
||
|
|
<column name="IS_DELETED" sql-type="VARCHAR2(255) default 'N'">
|
||
|
|
<comment>是否删除 N否 Y 是</comment>
|
||
|
|
</column>
|
||
|
|
</property>
|
||
|
|
|
||
|
|
</class>
|
||
|
|
</hibernate-mapping>
|