Serializable, Comparable<Entity2DDL>public enum Entity2DDL extends Enum<Entity2DDL>
spring.data.dynamodb.entity2ddl.auto Inspired by
Hibernate's hbm2ddl| Enum Constant | Description |
|---|---|
CREATE |
Database dropping will be generated followed by database creation on
ApplicationContext startup.
|
CREATE_DROP |
Drop the schema and recreate it on ApplicationContext startup.
|
CREATE_ONLY |
Database creation will be generated on ApplicationContext startup.
|
DROP |
Database dropping will be generated on ApplicationContext shutdown.
|
NONE |
No action will be performed.
|
VALIDATE |
Validate the database schema
|
| Modifier and Type | Method | Description |
|---|---|---|
static Entity2DDL |
fromValue(String value) |
Use this in place of valueOf.
|
String |
getConfigurationValue() |
|
static Entity2DDL |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Entity2DDL[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Entity2DDL NONE
public static final Entity2DDL CREATE_ONLY
public static final Entity2DDL DROP
public static final Entity2DDL CREATE
public static final Entity2DDL CREATE_DROP
public static final Entity2DDL VALIDATE
public static Entity2DDL[] values()
for (Entity2DDL c : Entity2DDL.values()) System.out.println(c);
public static Entity2DDL valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getConfigurationValue()
public static Entity2DDL fromValue(String value)
value - real valueIllegalArgumentException - If the specified value does not map to one of the known values in
this enum.Copyright © 2018–2019. All rights reserved.