<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE jbosscmp-jdbc PUBLIC
   "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN"
   "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd">

<jbosscmp-jdbc>
   <defaults>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <pk-constraint>true</pk-constraint>
   </defaults>

   <enterprise-beans>
      <entity>
         <ejb-name>AuditEJB</ejb-name>
         <table-name>cmp2_audit</table-name>
         <audit>
            <created-by/>
            <created-time/>
            <updated-by/>
            <updated-time/>
         </audit>
      </entity>
      <entity>
         <ejb-name>AuditChangedNamesEJB</ejb-name>
         <table-name>cmp2_audit_changednames</table-name>
         <audit>
            <created-by><column-name>createdby</column-name></created-by>
            <created-time><column-name>createdtime</column-name></created-time>
            <updated-by><column-name>updatedby</column-name></updated-by>
            <updated-time><column-name>updatedtime</column-name></updated-time>
         </audit>
      </entity>
      <entity>
         <ejb-name>AuditMappedEJB</ejb-name>
         <table-name>cmp2_audit_mapped</table-name>
         <audit>
            <created-by><field-name>createdBy</field-name><column-name>createdby</column-name></created-by>
            <created-time><field-name>createdTime</field-name><column-name>createdtime</column-name></created-time>
            <updated-by><field-name>updatedBy</field-name><column-name>updatedby</column-name></updated-by>
            <updated-time><field-name>updatedTime</field-name><column-name>updatedtime</column-name></updated-time>
         </audit>
      </entity>
   </enterprise-beans>
</jbosscmp-jdbc>
