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

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import devopsdistilled.operp.server.data.entity.party.Vendor;
import devopsdistilled.operp.server.data.repo.party.impl.VendorRepository;
import devopsdistilled.operp.server.data.service.impl.AbstractEntityService;
import devopsdistilled.operp.server.data.service.party.VendorService;

@Service
public class VendorServiceImpl extends
		AbstractEntityService<Vendor, Long, VendorRepository> implements
		VendorService {

	private static final long serialVersionUID = 7983273640225740161L;

	@Inject
	private VendorRepository repo;

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

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

}

@@ -56,16 +56,40 @@
 .impl;%0A%0A
+import java.util.Date;%0A%0A
 import j
@@ -843,10 +843,139 @@
 ll;%0A%09%7D%0A%0A
+%09@Override%0A%09public %3CS extends Vendor%3E S save(S entity) %7B%0A%09%09entity.setRegisteredDate(new Date());%0A%09%09return super.save(entity);%0A%09%7D%0A
 %7D%0A

Set registeredDate when save()