[jboss-user] [jBPM] - hibernate.cfg.xml not found (JBPM5 / Install.demo)
Touil Imad
do-not-reply at jboss.com
Mon Aug 13 15:10:04 EDT 2012
Touil Imad [https://community.jboss.org/people/imadt] created the discussion
"hibernate.cfg.xml not found (JBPM5 / Install.demo)"
To view the discussion, visit: https://community.jboss.org/message/753402#753402
--------------------------------------------------------------
Hi all,
After i configured all files to connect jboss to Mysql Database (i followed this link : http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e597 http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e597)
After i finished configuring files i'm trying now to run a sampl "Select" Query.
but i found that there are no ihbernate.cfg.xml file on my folder installation. (normally it's supposed to be created by install.demo)
Here is my Code lines to run the Query.
Configuration configuration = new Configuration();
SessionFactory sessionFactory = configuration.configure().buildSessionFactory();
Session session = sessionFactory.openSession();
Transaction transaction = session.beginTransaction();
org.hibernate.Query q = session.createQuery("from users");
transaction.commit();
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/753402#753402]
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/8af80d6a/attachment.html
More information about the jboss-user
mailing list