/*******************************************************************************
|
* Copyright (c) 2005, 2014 springside.github.io
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
*******************************************************************************/
|
package com.northglass.repository;
|
|
import java.util.List;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
import com.northglass.entity.ShelfTask;
|
import com.northglass.entity.User;
|
import com.northglass.entity.UserDetails;
|
|
|
public interface UserDetailsDao extends JpaRepository<UserDetails, Long>{
|
@Query("select t from UserDetails t where t.groups = ?1")
|
public UserDetails findgroups(String groups);
|
|
}
|