Java tutorial
/** * * Copyright (c) 2016 :;;. * All rights reserved. * *Licensed under the Beer License */ package com.sentinel.persistence.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.transaction.annotation.Transactional; import com.sentinel.persistence.models.User; /** * @author Vipin Kumar * @created 28-Jan-2016 * * TODO: Write a quick description of what the class is supposed to do. * */ @Transactional(readOnly = true) public interface UserRepository extends JpaRepository<User, Long> { User findByEmail(String email); }