package com.tymiller.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.tymiller.model.User;
import com.tymiller.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public List<User> findAllUsers() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User findByUserName(String userName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User save(User user) {
		// TODO Auto-generated method stub
		return null;
	}
	
}

package com.tymiller.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.tymiller.model.User;
import com.tymiller.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public List<User> findAllUsers() {
		return userDao.findAll();
	}

	@Override
	public User findByUserName(String userName) {
		return userDao.findByUserName(userName);
	}

	@Override
	public User save(User user) {
		return userDao.save(user);
	}
	
}

set up findAllUsers, findByUserName, and Save