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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
   */
  package org.hibernate.ogm.cfg;
  
Common properties for configuring NoSql datastores via persistence.xml or OgmConfiguration.

Note that not all properties are supported by all datastores; refer to the documentation of the specific dialect to find out the supported configuration properties.

This interface should not be implemented by client code, only its constants are intended to be referenced.

Author(s):
Gunnar Morling
 
 public interface OgmProperties {

Name of the configuration option for specifying an OptionConfigurator when bootstrapping Hibernate OGM. Supported value types are:
  • java.lang.String: the fully qualified name of an OptionConfigurator type
  • java.lang.Class: the class object representing an OptionConfigurator type
  • OptionConfigurator: a configurator instance
 
 	String OPTION_CONFIGURATOR = "hibernate.ogm.option.configurator";
 
 	String GRID_DIALECT = "hibernate.ogm.datastore.grid_dialect";

Property for setting the datastore provider. Can take the following values:
  • a DatastoreProvider instance
  • a DatastoreProvider class
  • a string representing the DatastoreProvider class
  • a string representing one of the datastore provider shortcuts (case-insensitive; a constant with the name to be used can be found on the public identifier type of your chosen grid dialect, e.g. MongoDB#DATASTORE_PROVIDER_NAME)
If the property is not set, Infinispan is used by default.
 
 	String DATASTORE_PROVIDER = "hibernate.ogm.datastore.provider";

Property for setting the host name to connect to. Accepts String. Accepts a comma separated list of host / ports. Note that for IPv6, the host must be surrounded by square bracket if a port is defined: [2001:db8::ff00:42:8329]:123 For example www.example.com, www2.example.com:123, 192.0.2.1, 192.0.2.2:123, 2001:db8::ff00:42:8329, [2001:db8::ff00:42:8329]:123
 
 	String HOST = "hibernate.ogm.datastore.host";

Property for setting the port number of the database to connect to. Accepts int.

Deprecated:
ignored when multiple hosts are defined in HOST, prefer the host:port approach
 
 	String PORT = "hibernate.ogm.datastore.port";

Property for setting the name of the database to connect to. Accepts String.
 
 	String DATABASE = "hibernate.ogm.datastore.database";

Property for setting the user name to connect with. Accepts String.
 
 	String USERNAME = "hibernate.ogm.datastore.username";

Property for setting the password to connect with. Accepts String.
 
 	String PASSWORD = "hibernate.ogm.datastore.password";

Property for specifying whether the database to connect to should be created when it doesn't exist. Default to false. The user defined with USERNAME must have the privileges for the creation of a new database. The database will have the name defined with DATABASE. Accepts "true" or "false".
 
 	String CREATE_DATABASE = "hibernate.ogm.datastore.create_database";

Property for setting a org.hibernate.ogm.compensation.ErrorHandler which will receive applied and failed grid dialect operations upon failures. Supported value types are:
  • java.lang.String: the fully qualified name of an ErrorHandler type
  • java.lang.Class: the class object representing an ErrorHandler type
  • ErrorHandler: an error handler instance
 
 	String ERROR_HANDLER = "hibernate.ogm.error_handler";
New to GrepCode? Check out our FAQ X