Example usage for org.springframework.data.mapping.model Property of

List of usage examples for org.springframework.data.mapping.model Property of

Introduction

In this page you can find the example usage for org.springframework.data.mapping.model Property of.

Prototype

public static Property of(TypeInformation<?> type, PropertyDescriptor descriptor) 

Source Link

Document

Creates a new Property for the given PropertyDescriptor .

Usage

From source file:com._4dconcept.springframework.data.marklogic.core.mapping.BasicMarklogicPersistentPropertyTest.java

private MarklogicPersistentProperty getPropertyFor(MarklogicPersistentEntity<?> persistentEntity, Field field) {
    return new BasicMarklogicPersistentProperty(Property.of(persistentEntity.getTypeInformation(), field),
            persistentEntity, SimpleTypeHolder.DEFAULT);
}