Making more progress. I apparently got hibernate.cfg.xml recognized by adding the following code to the static session:
Code:
File file = new File("F:/java/medrec/bin/hibernate.cfg.xml");
sessionFactory = cfg.configure(file).buildSessionFactory();
The output was:
HibernateUtil failed. org.hibernate.MappingException: Resource: medrecmodel/Patient.hbm.xml not found
Now, of course, the problem is still there because it is not finding the package medrecmodel where the Patient.htm.xml is kept. The file structure was noted in the original post.
I looked and found lots of environment variables that can be set in the Run dialog, but I'm trying to figure out how these work. By the way, the log4j.properties file is right next to the hibernate.cfg.xml and is not being seen by the app. Getting logging output from the plugin would help me. Again, I get helpful logging output with running the app as a POJO.
Appreciate your staying with me to try to figure this out.
Roy