Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  *  Copyright 2009-2014 Pavel Ponec
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.

Values list to control how the DLL (Data Definition Language) statements will be used to a defining data structure modification. The default value is CREATE_OR_UPDATE_DDL.

Pavel Ponec
See also:
public enum Orm2ddlPolicy {

Framework is expected to match the DDL structure with the ORM model and do not make any validation.

See also:
The policy makes no change in the database, however it logs a message in case missing a table, index, or column in the connected database - unlike option DO_NOTHING which make no log.

See also:
Create full DDL structure in condition that the the database structure was not found.
Create or update full DDL structure. It is the DEFAULT value.
Throw the IllegalStateException in case missing a table, index, or column in the connected database.
The value is defined from a parent. The hierarchy from the parent to a child is:
  • Meta Parameters
  • Database
  • Table
In case the parent ROOT is undefined, then the .CREATE_OR_UPDATE_DDL will be used.

New to GrepCode? Check out our FAQ X