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.options.spi;

Specialized class to be extended by options that may be defined only once in the context of a given OptionsContext. Most options should subclass this class.

Davide D'Alto <>
public abstract class UniqueOption<V> extends Option<Object, V> {
	private static final Object IDENTITY = new Object();

Return the identifier of this option.

Since two instances of the same UniqueOption must be unique this method cannot be overridden.

	public final Object getOptionIdentifier() {
		return ;
New to GrepCode? Check out our FAQ X