Derek Hulley 1fcdfc0a5d Part of MOB-436: Cluster-wide Locking Service: Implement DB Changes and Service
- Unit test not checked in as it requires some schema change work that has been done manually
 - Moved activities DAO code and renamed data services to DAOs (as per iBatis and Wikipedia, etc)
 - DAO code should now go into org.alfresco.repo.domain...
 - DAO components are bean:xyzDAO and class:XyzDAO
 - Entity beans are XyzEntity, etc

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13922 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-09 15:27:19 +00:00

71 lines
3.3 KiB
XML

<?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 is used to auto-generate Activity tables (based on configured Hibernate Dialect) -->
<hibernate-mapping>
<class
name="org.alfresco.repo.domain.activities.ActivityPostEntity"
table="alf_activity_post" >
<!-- auto-generated ID -->
<id name="id" column="sequence_id" type="long">
<generator class="native"/>
</id>
<property name="postDate" column="post_date" not-null="true" type="timestamp"/>
<property name="status" column="status" not-null="true" type="string" length="10"/>
<property name="activityData" column="activity_data" not-null="true" type="string" length="4000"/>
<property name="userId" column="post_user_id" not-null="true" type="string" length="255"/>
<property name="jobTaskNode" column="job_task_node" not-null="true" type="integer"/>
<property name="siteNetwork" column="site_network" type="string" length="255"/>
<property name="appTool" column="app_tool" type="string" length="36"/>
<property name="activityType" column="activity_type" not-null="true" type="string" length="255"/>
<property name="lastModified" column="last_modified" not-null="true" type="timestamp"/>
</class>
<class
name="org.alfresco.repo.domain.activities.ActivityFeedEntity"
table="alf_activity_feed" >
<!-- auto-generated ID -->
<id name="id" column="id" type="long">
<generator class="native"/>
</id>
<property name="postId" column="post_id" type="long"/>
<property name="postDate" column="post_date" not-null="true" type="timestamp"/>
<property name="activitySummary" column="activity_summary" type="string" length="4000"/>
<property name="feedUserId" column="feed_user_id" type="string" length="255"/>
<property name="activityType" column="activity_type" not-null="true" type="string" length="255"/>
<property name="activitySummaryFormat" column="activity_format" type="string" length="10"/>
<property name="siteNetwork" column="site_network" type="string" length="255"/>
<property name="appTool" column="app_tool" type="string" length="36"/>
<property name="postUserId" column="post_user_id" not-null="true" type="string" length="255"/>
<property name="feedDate" column="feed_date" not-null="true" type="timestamp"/>
</class>
<class
name="org.alfresco.repo.domain.activities.FeedControlEntity"
table="alf_activity_feed_control" >
<!-- auto-generated ID -->
<id name="id" column="id" type="long">
<generator class="native"/>
</id>
<property name="feedUserId" column="feed_user_id" not-null="true" type="string" length="255"/>
<property name="siteNetwork" column="site_network" type="string" length="255"/>
<property name="appTool" column="app_tool" type="string" length="36"/>
<property name="lastModified" column="last_modified" not-null="true" type="timestamp"/>
</class>
</hibernate-mapping>