bug-model.xml
1.37 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.home.bug" enable-merger="true" enable-sax-parser="true"
enable-base-visitor="true" enable-json-parser="true" enable-json-builder="true"
enable-xml-parser="false" enable-xml-builder="false" enable-native-parser="true" enable-native-builder="true">
<entity name="bug-report" root="true">
<attribute name="startTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<attribute name="domain" value-type="String" key="true"/>
<attribute name="endTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<entity-ref name="domain" type="map" names="domains" method-find-or-create="true"/>
</entity>
<entity name="domain">
<attribute name="id" value-type="String" key="true"/>
<attribute name="department" value-type="String"/>
<attribute name="productLine" value-type="String"/>
<element name="problem-url" value-type="String" />
<element name="excpetion" value-type="String" />
<entity-ref name="exception-item" type="map" names="exception-items" method-find-or-create="true"/>
</entity>
<entity name="exception-item">
<attribute name="id" value-type="String" key="true"/>
<attribute name="count" value-type="int" primitive="true"/>
<element name="message" value-type="String" type="list" names="messages" />
</entity>
</model>