Class LocalXsdResolver

  • public class LocalXsdResolver
    extends java.lang.Object
    When Hibernate loads an XSD we fully expect that to be resolved from our jar file via ClassLoader resource look-up. This class simplifies the steps needed to achieve those goals explicitly using its own ClassLoader for the look-ups.
    • Constructor Detail

      • LocalXsdResolver

        public LocalXsdResolver()
    • Method Detail

      • latestJpaVerison

        public static java.lang.String latestJpaVerison()
      • isValidJpaVersion

        public static boolean isValidJpaVersion​(java.lang.String version)
      • resolveLocalXsdUrl

        public static resolveLocalXsdUrl​(java.lang.String resourceName)
      • resolveLocalXsdSchema

        public static javax.xml.validation.Schema resolveLocalXsdSchema​(java.lang.String schemaResourceName)
      • buildXsdDescriptor

        public static XsdDescriptor buildXsdDescriptor​(java.lang.String resourceName,
                                                       java.lang.String version,
                                                       java.lang.String namespaceUri)