Checkpoint: szkielet

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2021-01-06 13:40:04 +01:00
parent cfc1e3eba7
commit 6e65c26e3c
4 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package com.plannaplan.services;
import com.plannaplan.entities.Exchange;
import com.plannaplan.repositories.ExchangeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ExchangeService {
@Autowired
private ExchangeRepository repo;
public Exchange save(Exchange exchange){
return this.repo.save(exchange);
}
}