Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <>.
 package org.hibernate.ogm.datastore.spi;
Contract for implementing schema creation and validation routines.

Implementations can vary from simply validating the entity model to creating physical structures in the underlying datastore. As this is a org.hibernate.service.Service contract, implementations can optionally implement service facts such as org.hibernate.service.spi.Configurable or org.hibernate.service.spi.ServiceRegistryAwareService etc. Implementations should be derived from BaseSchemaDefiner rather than implementing this interface directly.

The initializer type to be used for a given datastore is retrieved via DatastoreProvider.getSchemaDefinerType().

Gunnar Morling
	"The initializeSchema() method may be replaced by more specific fine-grained hooks in the future. A drop method " +
	"will be added in the future."
public interface SchemaDefiner extends Service {

Validates the mapped objects such as entities, id generators etc. against any specific requirements of the current datastore.

factory the session factory
Initializes the schema in the datastore.

configuration all the configuration properties
factory the session factory
New to GrepCode? Check out our FAQ X