我目前正在使用Jersey和spring mvc进行休息应用。现在我的一个事务实现类有一个我必须纠正的错误。我总是很困惑如何去做。就是这样:
package com.compulynx.interview.transaction.impl;
import java.util.ArrayList;
import java.util.List;
import com.compulynx.interview.models.Address;
import com.compulynx.interview.models.Person;
import com.compulynx.interview.transaction.TransactionBo;
public class TransactionBoImpl implements TransactionBo {
private List<Person> persons;
public TransactionBoImpl() {
this.persons = new ArrayList<>();
}
@Override
public List<Person> getPersons() {
//your code here
}
@Override
public List<Person> createPerson(Person person) {
//your code here
}
@Override
public List<Person> updatePerson(Person person) {
//your code here
}
}
//交易Bo.java
package com.compulynx.interview.transaction;
import java.util.List;
import com.compulynx.interview.models.Person;
public interface TransactionBo{
List<Person> getPersons();
List<Person> createPerson(Person person);
List<Person> updatePerson(Person person);
}
任何帮助?