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&...]