skillifier/src/main/java/rage/models/daos/UserSkillDao.java
@Query("SELECT us FROM Week w, Theme t, Skill s, UserSkill us"
            + " WHERE s.id = us.skill AND us.user = :user AND t.week = w.id"
            + " AND s.theme = t.id AND w.weekNumber = :weekNumber")
    public List<UserSkill> findByUserAndWeek(
            @Param("weekNumber") int weekNumber, @Param("user") User user);
/**
     * Find and return a list of Skills that the user has*.
     * (* This means get all data (Skills) there exists for this User.)
     * @param weekNumber The specified Week parent for the Skills
     * @param user The User whose Skills you want to fetch
     * @return (List of type UserSkill) The list of Skills in UserSkill @ManyToMany wrapper Class
     */
Find and return a list of Skills that the user has*.
(* This means get all data (Skills) there exists for this User.)
@param weekNumber The specified Week parent for the Skills
@param user The User whose Skills you want to fetch
@return (List of type UserSkill) The list of Skills in UserSkill @ManyToMany wrapper Class
Find and return a list of Skills that the user has * . ( * This means get all data ( Skills ) there exists for this User . ) @param weekNumber The specified Week parent for the Skills @param user The User whose Skills you want to fetch @return ( List of type UserSkill ) The list of Skills in UserSkill @ManyToMany wrapper Class
@Query("SELECT us FROM Week w, Theme t, Skill s, UserSkill us"
            + " WHERE s.id = us.skill AND us.user = :user AND t.week = w.id"
            + " AND s.theme = t.id AND w.weekNumber = :weekNumber")
    public List<UserSkill> findByUserAndWeek(
            @Param("weekNumber") int weekNumber, @Param("user") User user);
@ Query ( "SELECT us FROM Week w, Theme t, Skill s, UserSkill us" + " WHERE s.id = us.skill AND us.user = :user AND t.week = w.id" + " AND s.theme = t.id AND w.weekNumber = :weekNumber" ) public List < UserSkill > findByUserAndWeek ( @ Param ( "weekNumber" ) int weekNumber , @ Param ( "user" ) User user ) ;
Find and return a list of Skills that the user has*.
Find and return a list of Skills that the user has * .