org.springframework.data.ldap.repository.GenericLdapRepository Maven / Gradle / Ivy
package org.springframework.data.ldap.repository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.NoRepositoryBean;
/**
*
* @QueryHints(@QueryHint(name = "org.hibernate.cacheable", value = "true"))
*
* SELECT u FROM User u LEFT JOIN FETCH u.employee AS e WHERE UPPER(u.username) = UPPER(:username) AND (e.leave IS FALSE OR e IS NULL)
* SELECT u FROM User u INNER JOIN FETCH u.employee AS e WHERE UPPER(u.username) = UPPER(:username) AND UPPER(u.name) = UPPER(:name) AND UPPER(e.id) = UPPER(:employeeId) AND (e.leave IS FALSE OR e IS NULL)
*
*
* @see org.springframework.transaction.annotation.Transactional#readOnly()
* @see org.springframework.transaction.annotation.Transactional#timeout()
* @see org.springframework.data.repository.util.TxUtils#DEFAULT_TRANSACTION_MANAGER
* @see org.springframework.transaction.annotation.Isolation#READ_UNCOMMITTED
* @see org.hibernate.Hibernate#initialize(Object)
* @see org.springframework.data.querydsl.binding.QuerydslBinderCustomizer
* @see org.springframework.dao.IncorrectResultSizeDataAccessException
*/
@NoRepositoryBean
public interface GenericLdapRepository extends LdapRepository, QueryDslPredicateExecutor {
}