public class Validator extends KeylessValidator
Dao
 matches the database schema.| Constructor and Description | 
|---|
| Validator() | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<String> | findErrors(Connection connection,
          DaoDescriptor daoDescriptor) | 
| static void | validate(Connection connection,
        DaoDescriptor daoDescriptor)Calling this method will attempt to check to make sure that certain basics of the
  Daodefinition correctly match the database schema. | 
findErrors, validatepublic static void validate(Connection connection, DaoDescriptor daoDescriptor)
Dao definition correctly match the database schema. The following will
 be checked.
 Dao has a PrimaryKey definedIf a problem is found, an HrormException will be thrown
 describing the issue.
This is no substitute for testing.
connection - A connection to the database with the schema for the passed DaoDescriptordaoDescriptor - The definition of the Dao to be checkedHrormException - if a problem is discoveredpublic static List<String> findErrors(Connection connection, DaoDescriptor daoDescriptor)
Copyright © 2019. All rights reserved.