Example usage for org.springframework.data.domain Persistable getClass

List of usage examples for org.springframework.data.domain Persistable getClass

Introduction

In this page you can find the example usage for org.springframework.data.domain Persistable getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.obiba.mica.file.FileUtils.java

public static String getEntityPath(Persistable persistable) {
    return String.format("/%s/%s",
            CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_HYPHEN, persistable.getClass().getSimpleName()),
            persistable.getId());/*from  w w w .j av a 2 s.  c  om*/
}