All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tk.hongkailiu.test.app.mybatis.service.PersonService Maven / Gradle / Ivy

The newest version!
package tk.hongkailiu.test.app.mybatis.service;

import tk.hongkailiu.test.app.mybatis.entity.Person;
import tk.hongkailiu.test.app.mybatis.mapper.PersonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository("mybatisPersonService") @Transactional public class PersonService {

    @Autowired private PersonMapper personMapper;

    public List list() {
        return personMapper.list();
    }

    public void deleteById(int id) {
        personMapper.deleteById(id);
    }

    public void insert(Person person) {
        personMapper.insert(person);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy