class GraphGormMappingFactory extends AbstractGormMappingFactory
A MappingFactory for Neo4j
| Fields inherited from class | Fields |
|---|---|
class AbstractGormMappingFactory |
defaultConstraints, defaultNullable, entityToMapping, entityToPropertyMap, versionByDefault |
class MappingFactory |
IDENTITY_PROPERTY, SIMPLE_TYPES |
| Constructor and description |
|---|
GraphGormMappingFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected IdentityMapping |
createDefaultIdentityMapping(ClassMapping classMapping, Property property)MappingFactory#createDefaultIdentityMapping#createDefaultIdentityMapping resolves generator via
ValueGenerator#valueOf#valueOf with no fallback, so any name that isn't one of its built-in
constants throws IllegalArgumentException. |
|
Entity |
createMappedForm(PersistentEntity entity) |
|
protected java.lang.Class |
getEntityMappedFormType() |
|
protected java.lang.Class |
getPropertyMappedFormType() |
MappingFactory#createDefaultIdentityMapping#createDefaultIdentityMapping resolves generator via
ValueGenerator#valueOf#valueOf with no fallback, so any name that isn't one of its built-in
constants throws IllegalArgumentException. Unlike Hibernate - where the generator name is
always either a known strategy or a Hibernate generator class - Neo4j also accepts its own
built-in named strategies (e.g. "snowflake", see IdGenerator.Type) that aren't classes
at all and are resolved independently by GraphPersistentEntity; ValueGenerator here only
needs to not blow up, so any unrecognized name falls back to CUSTOM rather than throwing.