mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4133 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4145 . svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4147 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4148 . svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4151 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4152 . svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4157 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4159 . svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4161 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4162 . svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4169 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4175 . Skipped: 4146, 4151, 4153, 4156, 4157, 4160, 4163-4167 (inclusive) Last included: 4175 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4176 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
159 lines
4.4 KiB
XML
159 lines
4.4 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>
|
|
<!-- forward assoc to server IP -->
|
|
<many-to-one
|
|
name="server"
|
|
class="org.alfresco.repo.domain.hibernate.ServerImpl"
|
|
column="server_id"
|
|
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" />
|
|
</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>
|
|
</class>
|
|
|
|
<query name="server.getServerByIpAddress">
|
|
select
|
|
server
|
|
from
|
|
org.alfresco.repo.domain.hibernate.ServerImpl as server
|
|
where
|
|
server.ipAddress = :ipAddress
|
|
</query>
|
|
|
|
<query name="txn.GetLastTxnIdForStore">
|
|
select
|
|
max(txn.id)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
join status.transaction as txn
|
|
where
|
|
status.key.protocol = :protocol and
|
|
status.key.identifier = :identifier
|
|
</query>
|
|
|
|
<query name="txn.GetLastTxnId">
|
|
select
|
|
max(txn.id)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
|
|
join status.transaction as txn
|
|
</query>
|
|
|
|
<query name="txn.CountTransactions">
|
|
select
|
|
count(txn.id)
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
</query>
|
|
|
|
<query name="txn.GetNextTxns">
|
|
<![CDATA[
|
|
select
|
|
txn
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
where
|
|
txn.id > :lastTxnId
|
|
order by
|
|
txn.id
|
|
]]>
|
|
</query>
|
|
|
|
<query name="txn.GetNextRemoteTxns">
|
|
<![CDATA[
|
|
select
|
|
txn
|
|
from
|
|
org.alfresco.repo.domain.hibernate.TransactionImpl as txn
|
|
join txn.server as server
|
|
where
|
|
txn.id > :lastTxnId and
|
|
server.ipAddress != :serverIpAddress
|
|
order by
|
|
txn.id
|
|
]]>
|
|
</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>
|