1. hibernate.cfg.xml configuring values from properties file coderanch.com |
2. Could not configure datastore from file: hibernate.cfg.xml forum.hibernate.orgHi, I'm having trouble getting Hibernate to work on a new machine. I have made a copy of everything from a working system, but I get an XML parsing error when I try to run on a new system. In both cases, my classpath is setup from Ant, so that should not be different. It appears I must be picking up ... |
3. cfg.addFile() + cfg.configure() not working forum.hibernate.orgOk, I did some more research on this. By using Class' classLoader, it looks like there may be some limitation on the file's location (not sure I understand why, but there's a lot of text in the docs for Class.getResourceAsStream()). So I tried configure() off a URL (that points to the same file). Code: final ... |
4. can we configure using .cfg.xml and user supplied info forum.hibernate.org |