package devopsdistilled.operp.server.data.service.employee.impl;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import devopsdistilled.operp.server.data.entity.employee.Employee;
import devopsdistilled.operp.server.data.repo.employee.EmployeeRepository;
import devopsdistilled.operp.server.data.service.employee.EmployeeService;
import devopsdistilled.operp.server.data.service.impl.AbstractEntityService;

@Service
public class EmployeeServiceImpl extends
		AbstractEntityService<Employee, Long, EmployeeRepository> implements
		EmployeeService {

	private static final long serialVersionUID = 2648525777561781085L;

	@Inject
	private EmployeeRepository repo;

	@Override
	protected EmployeeRepository getRepo() {
		return repo;
	}

	@Override
	protected Employee findByEntityName(String entityName) {
		return null;
	}

}

@@ -59,16 +59,40 @@
 .impl;%0A%0A
+import java.util.Date;%0A%0A
 import j
@@ -870,10 +870,184 @@
 ll;%0A%09%7D%0A%0A
+%09@Override%0A%09public %3CS extends Employee%3E S save(S employee) %7B%0A%09%09if (employee.getJoinedDate() == null)%0A%09%09%09employee.setJoinedDate(new Date());%0A%09%09return super.save(employee);%0A%09%7D%0A
 %7D%0A

Add join date when persist