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.options.navigation;
 
Property level to the options navigation API. Let's you define property level options as well as navigate to a another property level of the current entity or to another entity.

Implementations must declare a constructor with a single parameter of type org.hibernate.ogm.options.navigation.spi.ConfigurationContext and should preferably be derived from org.hibernate.ogm.options.navigation.spi.BaseEntityContext.

Parameters:
<E> the type of provider-specific entity context definition, associated with the specific property context type
<P> the type of a provider-specific property context definition, following the self-referential generic type pattern
Author(s):
Emmanuel Bernard <emmanuel@hibernate.org>
public interface PropertyContext<E extends EntityContext<E, P>, P extends PropertyContext<E, P>> {

Specify mapping for the entity type

Parameters:
type the type of the entity
Returns:
the entity context definition
entity(Class<?> type);

Specify mapping for the given property.

Parameters:
propertyName the name of the property to be configured, following to the JavaBeans naming convention
target the target element type of the property, must either be java.lang.annotation.ElementType.FIELD or java.lang.annotation.ElementType.METHOD).
Returns:
the property context definition
property(String propertyNameElementType target);
New to GrepCode? Check out our FAQ X