mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-23 18:05:32 +00:00
8105: Fix for AR-1828 - multiple users being created from web siteregistration 8107: Merged V2.1 to v2.2 8106: Fixed fallout from MetadataExtractors setting properties to thecorrect data type 8109: Fix for AR-2016 8119: AR-1778: putContent method in the ContentUtils class fail to upload*.java, *.txt, *.xml 8120: AR-1895: fix to web service SDK sample 8125: Test added to prevent regression of AR-1707 8126: Enhanced exception message when non-marking InputStream is used. 8131: Merged V2.1 to V2.2 8129: Merged V1.4 to V2.1: 8128: Fix AR-2041: NPE checking voids during index tracking 8140: AR-1762 - correct generation of download servlet URL git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8477 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
159 lines
4.6 KiB
XML
159 lines
4.6 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>
|
|
|
|
<class
|
|
name="org.alfresco.repo.domain.hibernate.TransactionImpl"
|
|
proxy="org.alfresco.repo.domain.Transaction"
|
|
table="alf_transaction"
|
|
dynamic-update="false"
|
|
dynamic-insert="false"
|
|
select-before-update="false"
|
|
lazy="true"
|
|
optimistic-lock="version" >
|
|
<!-- auto-generated ID -->
|
|
<id name="id" column="id" type="long" >
|
|
<generator class="native" />
|
|
</id>
|
|
<!-- Optimistic locking -->
|
|
<version column="version" name="version" type="long" />
|
|
<!-- forward assoc to server IP -->
|
|
<many-to-one
|
|
name="server"
|
|
class="org.alfresco.repo.domain.hibernate.ServerImpl"
|
|
column="server_id"
|
|
foreign-key="fk_alf_txn_svr"
|
|
lazy="proxy"
|
|
fetch="select"
|
|
unique="false"
|
|
not-null="false"
|
|
cascade="none" />
|
|
<property name="changeTxnId" column="change_txn_id" type="string" length="56" not-null="true" />
|
|
<property name="commitTimeMs" column="commit_time_ms" type="long" not-null="false" index="idx_alf_txn_ctms" />
|
|
</class>
|
|
|
|
<class
|
|
name="org.alfresco.repo.domain.hibernate.ServerImpl"
|
|
proxy="org.alfresco.repo.domain.Server"
|
|
table="alf_server"
|
|
dynamic-update="false"
|
|
dynamic-insert="false"
|
|
select-before-update="false"
|
|
lazy="true"
|
|
optimistic-lock="version" >
|
|
<!-- auto-generated ID -->
|
|
<id name="id" column="id" type="long" >
|
|
<generator class="native" />
|
|
</id>
|
|
<natural-id>
|
|
<property name="ipAddress" column="ip_address" type="string" length="15" not-null="true" />
|
|
</natural-id>
|
|
<!-- Optimistic locking -->
|
|
<version column="version" name="version" type="long" />
|
|
</class>
|
|
|
|
<query name="server.getServerByIpAddress">
|
|
select
|
|
server
|
|
from
|
|
org.alfresco.repo.domain.hibernate.ServerImpl as server
|
|
where
|
|
server.ipAddress = :ipAddress
|
|
</query>
|
|
|
|
<query name="txn.GetTxnById">
|
|
select
|
|
txn
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
where
|
|
txn.id = :txnId
|
|
order by
|
|
txn.commitTimeMs
|
|
</query>
|
|
|
|
<query name="txn.GetTxnsByCommitTimeAsc">
|
|
<![CDATA[
|
|
select
|
|
txn
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
where
|
|
txn.commitTimeMs >= :fromTimeInclusive and
|
|
txn.commitTimeMs < :toTimeExclusive and
|
|
txn.id not in (:excludeTxnIds)
|
|
order by
|
|
txn.commitTimeMs
|
|
]]>
|
|
</query>
|
|
|
|
<query name="txn.GetTxnsByCommitTimeDesc">
|
|
<![CDATA[
|
|
select
|
|
txn
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
where
|
|
txn.commitTimeMs >= :fromTimeInclusive and
|
|
txn.commitTimeMs < :toTimeExclusive and
|
|
txn.id not in (:excludeTxnIds)
|
|
order by
|
|
txn.commitTimeMs desc
|
|
]]>
|
|
</query>
|
|
|
|
<query name="txn.CountTransactions">
|
|
select
|
|
count(txn.id)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
</query>
|
|
|
|
<query name="txn.GetTxnUpdateCountForStore">
|
|
select
|
|
count(status.key.guid)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
join status.transaction as txn
|
|
where
|
|
txn.id = :txnId and
|
|
status.node is not null
|
|
</query>
|
|
|
|
<query name="txn.GetTxnDeleteCountForStore">
|
|
select
|
|
count(status.key.guid)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
join status.transaction as txn
|
|
where
|
|
txn.id = :txnId and
|
|
status.node is null
|
|
</query>
|
|
|
|
<query name="txn.GetTxnChangesForStore">
|
|
select
|
|
status
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
where
|
|
status.transaction.id = :txnId and
|
|
status.key.protocol = :protocol and
|
|
status.key.identifier = :identifier
|
|
</query>
|
|
|
|
<query name="txn.GetTxnChanges">
|
|
select
|
|
status
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
where
|
|
status.transaction.id = :txnId
|
|
</query>
|
|
|
|
</hibernate-mapping>
|