Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.tracy.immutable.service.crud.Impl; import com.tracy.immutable.model.members.Student; import com.tracy.immutable.service.crud.StudentCrudService; import java.util.List; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; /** * * @author student */ public class StudentCrudServiceImpl implements StudentCrudService { @Override @Transactional(propagation = Propagation.SUPPORTS) public Student find(String s) { return null; } @Override @Transactional(propagation = Propagation.MANDATORY) public Student persist(Student entity) { return null; } @Override @Transactional(propagation = Propagation.REQUIRES_NEW) public Student merge(Student entity) { return null; } @Override @Transactional(propagation = Propagation.REQUIRED) public Student remove(Student entity) { return null; } @Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public List<Student> findAll() { return null; } }