Sunday, 1 February 2015

How to refer to a classpath XSD in xsi:schemaLocation?



For example, I want instead of referring to an online XSD like this:



<persistence xmlns="…" xmlns:xsi="…"
xsi:schemaLocation="http://ift.tt/1cKbVbQ
http://ift.tt/1BPK8Cn"> <!-- online -->


To refer to a classpath XSD like this:



<persistence xmlns="…" xmlns:xsi="…"
xsi:schemaLocation="http://ift.tt/1cKbVbQ
org/hibernate/jpa/persistence_2_1.xsd"> <!-- classpath -->

No comments:

Post a Comment