[
https://issues.jboss.org/browse/JBPM-3048?page=com.atlassian.jira.plugin....
]
Jürgen Schmied commented on JBPM-3048:
---------------------------------------
Hi!
I got around it with the following orm.xml
----
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings
xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
version="2.0">
<named-query name="ProcessInstancesWaitingForEvent">
<query>
SELECT p.processInstanceId
FROM ProcessInstanceInfo p
WHERE :type MEMBER OF p.eventTypes</query>
</named-query>
<entity
class="org.jbpm.persistence.processinstance.ProcessInstanceInfo">
<attributes>
<element-collection name="eventTypes">
<collection-table name="EventTypes">
<join-column name="InstanceId" />
</collection-table>
</element-collection>
</attributes>
</entity>
</entity-mappings>
---
Nevertheless, the reference should removed.
juergen
ProcessInstanceInfo.java should not import hibernate class
----------------------------------------------------------
Key: JBPM-3048
URL:
https://issues.jboss.org/browse/JBPM-3048
Project: jBPM
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 5.0
Environment: JBPM Snapshot 06.02.2011
Reporter: Jürgen Schmied
Assignee: Kris Verlaenen
The only direct dependency to hibernate is in ProcessInstanceInfo.java. There is a import
of
org.hibernate.annotations.CollectionOfElements;
I think JPA provides a more portable way to map a collection field.
I have flow persistence running on geronimo with openjpa mostly. This is the only show
stopper.
Could this be done in a different way?
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira