package com.aemreunal.repository.user;

/*
 ***************************
 * Copyright (c) 2014      *
 *                         *
 * This code belongs to:   *
 *                         *
 * @author Ahmet Emre Ünal *
 * S001974                 *
 *                         *
 * aemreunal@gmail.com     *
 * emre.unal@ozu.edu.tr    *
 *                         *
 * aemreunal.com           *
 ***************************
 */

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import com.aemreunal.domain.User;

public interface UserRepo extends CrudRepository<User, Long>, JpaSpecificationExecutor {
//    Beacon findByBeaconIdAndProject(Long beaconId, Project project);
}

@@ -678,76 +678,47 @@
 r %7B%0A
-//
     
-Beacon
+User
  findBy
-BeaconIdAndProject(Long beaconId, Project project
+Username(String username
 );%0A%7D

Add finding by username