com.xyxy.platform.examples.showcase.repository.jpa.UserDao.java Source code

Java tutorial

Introduction

Here is the source code for com.xyxy.platform.examples.showcase.repository.jpa.UserDao.java

Source

/*******************************************************************************
 * Copyright (c) 2005, 2014
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.xyxy.platform.examples.showcase.repository.jpa;

import com.xyxy.platform.examples.showcase.entity.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface UserDao extends PagingAndSortingRepository<User, Long>, JpaSpecificationExecutor<User> {

    User findByName(String name);

    User findByLoginName(String loginName);
}