Author: heiko.braun(a)jboss.com
Date: 2009-10-12 05:47:24 -0400 (Mon, 12 Oct 2009)
New Revision: 166
Modified:
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/MessageExchangeDaoImpl.java
Log:
Added patch for
http://issues.apache.org/jira/browse/ODE-436
Modified:
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java
===================================================================
---
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java 2009-10-09
20:02:36 UTC (rev 165)
+++
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java 2009-10-12
09:47:24 UTC (rev 166)
@@ -97,8 +97,10 @@
}
public MessageExchangeDAO getMessageExchange(String mexid) {
- HMessageExchange mex = (HMessageExchange)
getSession().get(HMessageExchange.class, new Long(mexid));
- return mex == null ? null : new MessageExchangeDaoImpl(_sm, mex);
+ org.hibernate.Query query = _session.createQuery("from HMessageExchange x
where x.mexId = ?");
+ query.setString(0, mexId);
+ HMessageExchange mex = (HMessageExchange) query.uniqueResult();
+ return mex == null ? null : new MessageExchangeDaoImpl(_sm, mex);
}
public ProcessDAO createProcess(QName pid, QName type, String guid, long version) {
Modified:
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/MessageExchangeDaoImpl.java
===================================================================
---
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/MessageExchangeDaoImpl.java 2009-10-09
20:02:36 UTC (rev 165)
+++
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/MessageExchangeDaoImpl.java 2009-10-12
09:47:24 UTC (rev 166)
@@ -60,7 +60,7 @@
}
public String getMessageExchangeId() {
- return _hself.getId().toString();
+ return _hself.getMexId();
}
public MessageDAO getResponse() {