@Override @SuppressWarnings("unchecked") public Class<ID> getIdType() { if (this.entityMetadata.hasIdProperty()) { return super.getIdType(); } return fallbackIdType; } }
@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); }
@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); }
@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); }
@Override @SuppressWarnings("unchecked") public Class<ID> getIdType() { if (this.entityMetadata.hasIdProperty()) { return super.getIdType(); } return fallbackIdType; } }
@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); }
@Override public Class<ID> getIdType() { if (this.entityMetadata.hasIdProperty()) { return super.getIdType(); } return fallbackIdType; } }
@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); }
@Override public Class<ID> getIdType() { if (this.entityMetadata.hasIdProperty()) { return super.getIdType(); } return fallbackIdType; } }
@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); }