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

Demian Calcaprina do-not-reply at jboss.com
Mon Aug 13 18:02:13 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/753433#753433

--------------------------------------------------------------
Well, I still don't understand what you are trying to achieve? What do you want to query?

To create a Query using JPA, you must create an EntityManager from one of the persistence units you have in persistence.xml.

EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");

and then create an entity manager that will let you create a query.

But again, it would be good to know what you are trying to do in order to help you.

Thanks

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

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

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/2b767a17/attachment-0001.html 


More information about the jboss-user mailing list