I am taking the first steps with JPA (Hibernate). The general idea is to connect to an outdated database to perform complex queries. I think hibernation is a great companion for this task, but ...
... for starters, I created one configuration file bean, persistence.xml and hibernate.cfg.xml and some lines of code in the main method, starting with:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("foo");
It reads the persistence.xml file, but since I am disconnected from the Internet, it cannot read the schema file (xsd) to check persistence.xml and complains about exceptions. (And I do not have a local copy of persistence.xsd in this environment). I tried to remove the schemalocation attribute, but that did not help. No grammar, no JPA !?
Is there a way / trick / workaround to disable document validation, at least for parsing persistence.xml?
source
share