Class SchemaValidator


  • public class SchemaValidator
    extends Object
    A commandline tool to update a database schema. May also be called from inside an application.
    • Constructor Detail

      • SchemaValidator

        public SchemaValidator()
    • Method Detail

      • validate

        public void validate​(org.hibernate.boot.Metadata metadata)
      • validate

        public void validate​(org.hibernate.boot.Metadata metadata,
                             org.hibernate.service.ServiceRegistry serviceRegistry)
      • main

        public static void main​(String[] args)
      • buildMetadataFromMainArgs

        public static org.hibernate.boot.spi.MetadataImplementor buildMetadataFromMainArgs​(String[] args)
                                                                                    throws Exception
        Intended for test usage only. Builds a Metadata using the same algorithm as main(java.lang.String[])
        Parameters:
        args - The "command line args"
        Returns:
        The built Metadata
        Throws:
        Exception - Problems building the Metadata