Tabnine Logo
PersistentEntityInformation
Code IndexAdd Tabnine to your IDE (free)

How to use
PersistentEntityInformation
in
org.springframework.data.repository.core.support

Best Java code snippets using org.springframework.data.repository.core.support.PersistentEntityInformation (Showing top 10 results out of 315)

origin: spring-projects/spring-data-mongodb

  @Override
  @SuppressWarnings("unchecked")
  public Class<ID> getIdType() {

    if (this.entityMetadata.hasIdProperty()) {
      return super.getIdType();
    }

    return fallbackIdType;
  }
}
origin: spring-projects/spring-data-jdbc

@SuppressWarnings("unchecked")
@Override
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> aClass) {
  RelationalPersistentEntity<?> entity = context.getRequiredPersistentEntity(aClass);
  return (EntityInformation<T, ID>) new PersistentEntityInformation<>(entity);
}
origin: org.springframework.data/spring-data-keyvalue

@Override
@SuppressWarnings("unchecked")
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
  PersistentEntity<T, ?> entity = (PersistentEntity<T, ?>) context.getRequiredPersistentEntity(domainClass);
  return new PersistentEntityInformation<>(entity);
}
origin: spring-projects/spring-data-keyvalue

@Override
@SuppressWarnings("unchecked")
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
  PersistentEntity<T, ?> entity = (PersistentEntity<T, ?>) context.getRequiredPersistentEntity(domainClass);
  return new PersistentEntityInformation<>(entity);
}
origin: org.springframework.data/spring-data-mongodb

  @Override
  @SuppressWarnings("unchecked")
  public Class<ID> getIdType() {

    if (this.entityMetadata.hasIdProperty()) {
      return super.getIdType();
    }

    return fallbackIdType;
  }
}
origin: org.springframework.data/spring-data-jdbc

@SuppressWarnings("unchecked")
@Override
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> aClass) {
  RelationalPersistentEntity<?> entity = context.getRequiredPersistentEntity(aClass);
  return (EntityInformation<T, ID>) new PersistentEntityInformation<>(entity);
}
origin: org.springframework.data/spring-data-relational

  @Override
  public Class<ID> getIdType() {

    if (this.entityMetadata.hasIdProperty()) {
      return super.getIdType();
    }

    return fallbackIdType;
  }
}
origin: apache/servicemix-bundles

@Override
@SuppressWarnings("unchecked")
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
  PersistentEntity<T, ?> entity = (PersistentEntity<T, ?>) context.getRequiredPersistentEntity(domainClass);
  return new PersistentEntityInformation<>(entity);
}
origin: spring-projects/spring-data-jdbc

  @Override
  public Class<ID> getIdType() {

    if (this.entityMetadata.hasIdProperty()) {
      return super.getIdType();
    }

    return fallbackIdType;
  }
}
origin: spring-projects/spring-data-aerospike

  @SuppressWarnings("unchecked")
  @Override
  public <T, ID extends Serializable> EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
    AerospikePersistentEntity<?> entity = context.getPersistentEntity(domainClass);
    if (entity == null) {
      throw new MappingException(
          String.format("Could not lookup mapping metadata for domain class %s!", domainClass.getName()));
    }

//        PersistentEntity<T, ?> entity = (PersistentEntity<T, ?>) context.getPersistentEntity(domainClass);

    //PersistentEntityInformation<T, ID> entityInformation = new PersistentEntityInformation<T, ID>((AerospikePersistentEntity<T>) entity);
    return new PersistentEntityInformation<T, ID>((AerospikePersistentEntity<T>) entity);
  }

org.springframework.data.repository.core.supportPersistentEntityInformation

Javadoc

EntityInformation implementation that uses a PersistentEntity to obtain id type information and uses a org.springframework.data.mapping.IdentifierAccessor to access the property value if requested.

Most used methods

  • <init>
  • getIdType

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now