Example usage for org.springframework.data.jpa.repository.support JpaMetamodelEntityInformation getIdAttributeNames

List of usage examples for org.springframework.data.jpa.repository.support JpaMetamodelEntityInformation getIdAttributeNames

Introduction

In this page you can find the example usage for org.springframework.data.jpa.repository.support JpaMetamodelEntityInformation getIdAttributeNames.

Prototype

@Override
    public Iterable<String> getIdAttributeNames() 

Source Link

Usage

From source file:com.github.dactiv.orm.core.spring.data.jpa.repository.support.JpaSupportRepository.java

@SuppressWarnings("rawtypes")
public String getIdName() {
    JpaMetamodelEntityInformation information = (JpaMetamodelEntityInformation) entityInformation;
    return information.getIdAttributeNames().iterator().next().toString();
}