public class Neo4jSchemaDefiner extends BaseSchemaDefiner
Note that unique constraints involving multiple columns won't be applied because Neo4j does not support it.
The creation of unique constraints can be skipped setting the property
AvailableSettings.UNIQUE_CONSTRAINT_SCHEMA_UPDATE_STRATEGY to the value
UniqueConstraintSchemaUpdateStrategy.SKIP. Because in Neo4j unique constraints don't have a name, setting the
value to UniqueConstraintSchemaUpdateStrategy.RECREATE_QUIETLY or
UniqueConstraintSchemaUpdateStrategy.DROP_RECREATE_QUIETLY will have the same effect: keep the existing
constraints and create the missing one.
SchemaDefiner.SchemaDefinitionContext| Constructor and Description |
|---|
Neo4jSchemaDefiner() |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeSchema(SchemaDefiner.SchemaDefinitionContext context) |
validateMappingpublic void initializeSchema(SchemaDefiner.SchemaDefinitionContext context)
initializeSchema in interface SchemaDefinerinitializeSchema in class BaseSchemaDefinerCopyright © 2010–2016 Hibernate. All rights reserved.