Class JpaEntityInformationSupport<T,ID>

java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport<T,ID>
All Implemented Interfaces:
JpaEntityMetadata<T>, JpaEntityInformation<T,ID>, EntityInformation<T,ID>, EntityMetadata<T>
Direct Known Subclasses:
JpaMetamodelEntityInformation

public abstract class JpaEntityInformationSupport<T,ID> extends AbstractEntityInformation<T,ID> implements JpaEntityInformation<T,ID>
Base class for JpaEntityInformation implementations to share common method implementations.
Author:
Oliver Gierke, Mark Paluch, Greg Turnquist
  • Constructor Details

    • JpaEntityInformationSupport

      public JpaEntityInformationSupport(Class<T> domainClass)
      Creates a new JpaEntityInformationSupport with the given domain class.
      Parameters:
      domainClass - must not be null.
  • Method Details

    • getEntityInformation

      public static <T> JpaEntityInformation<T,?> getEntityInformation(Class<T> domainClass, jakarta.persistence.EntityManager em)
      Creates a JpaEntityInformation for the given domain class and EntityManager.
      Parameters:
      domainClass - must not be null.
      em - must not be null.
      Returns:
    • getEntityName

      public String getEntityName()
      Description copied from interface: JpaEntityMetadata
      Returns the name of the entity.
      Specified by:
      getEntityName in interface JpaEntityMetadata<T>
      Returns: