Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* @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 GenericJpaRepository, ID extends Serializable>
extends RevisionRepository, JpaRepository, QueryDslPredicateExecutor, JpaSpecificationExecutor {
T findOne(Predicate predicate, Join... joins);
@Override
T findOne(ID id) throws EntityNotFoundException;
T findOne(JPQLQuery query);