Java Code Examples for org.springframework.data.jpa.repository.support.JpaEntityInformationSupport#getEntityInformation()
The following examples show how to use
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport#getEntityInformation() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VirtualHostRepositoryImpl.java From galeb with Apache License 2.0 | 4 votes |
private boolean entityIsNew(VirtualHost virtualHost) { JpaEntityInformation<VirtualHost, ?> entityInformation = JpaEntityInformationSupport .getEntityInformation(VirtualHost.class, genericDaoService.entityManager()); return entityInformation.isNew(virtualHost); }
Example 2
Source File: EntityInformationFacade.java From spring-content with Apache License 2.0 | 4 votes |
public EntityInformation getEntityInformation(Class<?> entityClass, EntityManager em) { return JpaEntityInformationSupport.getEntityInformation(entityClass, em); }
Example 3
Source File: GenericJpaRepositoryImpl.java From genericdao with Artistic License 2.0 | 4 votes |
public GenericJpaRepositoryImpl(Class<T> domainClass, EntityManager entityManager) { //modified for spring data starter 1.3 super(domainClass , entityManager); this.entityInformation = JpaEntityInformationSupport.getEntityInformation(domainClass, entityManager) ; this.entityManager = entityManager; }
Example 4
Source File: SoftDeletesRepositoryImpl.java From spring-boot-jpa-data-rest-soft-delete with MIT License | 4 votes |
public SoftDeletesRepositoryImpl(Class<T> domainClass, EntityManager em) { super(domainClass, em); this.em = em; this.domainClass = domainClass; this.entityInformation = JpaEntityInformationSupport.getEntityInformation(domainClass, em); }