package com.uas.platform.b2b.dao;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.stereotype.Repository;

import com.uas.platform.b2b.model.User;

@Repository
public interface UserDao extends JpaRepository<User, Long> {

	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	public List<User> findUserByUserUU(Long userUU);

	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	public List<User> findUserByUserEmail(String userEmail);

	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	public List<User> findUserByUserTel(String userTel);

}
