public class Validator extends Object
Dao
 matches the database schema.| Constructor and Description | 
|---|
Validator()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
validate(Connection connection,
        DaoDescriptor daoDescriptor)
Calling this method will attempt to check to make sure that certain basics of the
  
Dao definition correctly match the database schema. | 
public 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 discoveredCopyright © 2018. All rights reserved.