/*
 * Copyright 2014 Open mHealth
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openmhealth.dsu.repository;

import org.openmhealth.dsu.domain.User;
import org.springframework.data.repository.CrudRepository;


/**
 * @author Emerson Farrugia
 */
public interface UserRepository extends CrudRepository<User, String> {

}

@@ -714,20 +714,16 @@
 ository.
-Crud
 Reposito
@@ -727,16 +727,44 @@
 itory;%0A%0A
+import java.util.Optional;%0A%0A
 %0A/**%0A * 
@@ -836,12 +836,8 @@
 nds 
-Crud
 Repo
@@ -860,10 +860,149 @@
 ing%3E %7B%0A%0A
+    Optional%3CUser%3E findOne(String username);%0A%0A    Optional%3CUser%3E findByRegistrationKey(String registrationKey);%0A%0A    void save(User user);%0A
 %7D%0A

Add more user repository methods.