[jboss-user] [jBPM] - Re: hibernate.cfg.xml not found (JBPM5 / Install.demo)

Demian Calcaprina do-not-reply at jboss.com
Mon Aug 13 19:18:05 EDT 2012


Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion

"Re: hibernate.cfg.xml not found (JBPM5 / Install.demo)"

To view the discussion, visit: https://community.jboss.org/message/753440#753440

--------------------------------------------------------------
Well, there it says that Users is not mapped.

If you want to query the users from task database ( https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/task/User.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/task/User.java)

you can make "From User"

and when creating the EntityManagerFactory, the persistence unit name is "org.jbpm.task"

Jbpm uses two persistence units (you can check it in file persistence.xml, it should look like this  https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/resources/META-INF/persistence.xml https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/resources/META-INF/persistence.xml) One is for human tasks persistence, and the other for jbpm runtime entities.

Hope this helps,

Demian
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/753440#753440]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120813/730bb886/attachment.html 


More information about the jboss-user mailing list