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

import org.springframework.data.jpa.repository.JpaRepository;

import devopsdistilled.operp.server.data.entity.account.Transaction;
import devopsdistilled.operp.server.data.service.impl.AbstractEntityService;

public abstract class TransactionServiceImpl<T extends Transaction<?>, TR extends JpaRepository<T, Long>>
		extends AbstractEntityService<T, Long, TR> {

	private static final long serialVersionUID = -4898201898165854461L;

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

}

@@ -58,16 +58,40 @@
 .impl;%0A%0A
+import java.util.Date;%0A%0A
 import o
@@ -597,10 +597,150 @@
 ll;%0A%09%7D%0A%0A
+%09@Override%0A%09public %3CS extends T%3E S save(S transaction) %7B%0A%09%09transaction.setTransactionDate(new Date());%0A%09%09return super.save(transaction);%0A%09%7D%0A
 %7D%0A

Set Date when persisting Transaction