// Path: rsql-querydsl-parent/rsql-querydsl-integrationtest/src/main/java/com/github/vineey/rql/querydsl/test/jpa/entity/User.java
// @Entity
// public class User {
//     @Id
//     @GeneratedValue(strategy= GenerationType.AUTO)
//     private long id;
// 
//     private String username;
// 
//     private String name;
// 
//     private LocalDate bday;
// 
//     public User(Long id, String name, String username, LocalDate bday) {
//         this.id = id;
//         this.username = username;
//         this.name = name;
//         this.bday = bday;
//     }
// 
//     public User() {
// 
//     }
// 
//     public User(User user) {
//         this.id = user.getId();
//         this.username = user.getUsername();
//         this.bday = user.getBday();
//         this.name = user.getName();
//     }
// 
//     public LocalDate getBday() {
//         return bday;
//     }
// 
//     public void setBday(LocalDate bday) {
//         this.bday = bday;
//     }
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getUsername() {
//         return username;
//     }
// 
//     public void setUsername(String username) {
//         this.username = username;
//     }
// }


import java.util.Map;
import com.github.vineey.rql.querydsl.test.jpa.entity.QUser;
import com.github.vineey.rql.querydsl.test.jpa.entity.User;
import com.google.common.collect.ImmutableMap;
import com.querydsl.core.types.Path;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
/*
* MIT License
* 
* Copyright (c) 2016 John Michael Vincent S. Rustia
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* 
*/
package com.github.vineey.rql.querydsl.test.jpa.dao;



/**
 * @author vrustia - 5/9/16.
 */
public interface UserDao extends QueryDslPredicateExecutor<User>, JpaRepository<User, Long> {
    Map<String, Path> PATH_MAP = ImmutableMap.<String, Path>builder()
            .put("user.id", QUser.user.id)
            .put("user.name", QUser.user.name)
// Path: rsql-querydsl-parent/rsql-querydsl-integrationtest/src/main/java/com/github/vineey/rql/querydsl/test/jpa/entity/User.java
// @Entity
// public class User {
//     @Id
//     @GeneratedValue(strategy= GenerationType.AUTO)
//     private long id;
// 
//     private String username;
// 
//     private String name;
// 
//     private LocalDate bday;
// 
//     public User(Long id, String name, String username, LocalDate bday) {
//         this.id = id;
//         this.username = username;
//         this.name = name;
//         this.bday = bday;
//     }
// 
//     public User() {
// 
//     }
// 
//     public User(User user) {
//         this.id = user.getId();
//         this.username = user.getUsername();
//         this.bday = user.getBday();
//         this.name = user.getName();
//     }
// 
//     public LocalDate getBday() {
//         return bday;
//     }
// 
//     public void setBday(LocalDate bday) {
//         this.bday = bday;
//     }
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getUsername() {
//         return username;
//     }
// 
//     public void setUsername(String username) {
//         this.username = username;
//     }
// }


// Path: rsql-querydsl-parent/rsql-querydsl-integrationtest/src/main/java/com/github/vineey/rql/querydsl/test/jpa/dao/UserDao.java
import java.util.Map;
import com.github.vineey.rql.querydsl.test.jpa.entity.QUser;
import com.github.vineey.rql.querydsl.test.jpa.entity.User;
import com.google.common.collect.ImmutableMap;
import com.querydsl.core.types.Path;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

/*
* MIT License
* 
* Copyright (c) 2016 John Michael Vincent S. Rustia
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* 
*/
package com.github.vineey.rql.querydsl.test.jpa.dao;



/**
 * @author vrustia - 5/9/16.
 */
public interface UserDao extends QueryDslPredicateExecutor<User>, JpaRepository<User, Long> {
    Map<String, Path> PATH_MAP = ImmutableMap.<String, Path>builder()
            .put("user.id", QUser.user.id)
            .put("user.name", QUser.user.name)
            .put("user.username", QUser.user.username)