19 lines
434 B
Java
19 lines
434 B
Java
|
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);
|
||
|
}
|
||
|
}
|