com.upic.common.support.RepositoryImpl Maven / Gradle / Ivy
/**
*
*/
package com.upic.common.support;
import javax.persistence.EntityManager;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.transaction.annotation.Transactional;
/**
* @author zhailiang
*
*/
public class RepositoryImpl extends SimpleJpaRepository {
public RepositoryImpl(JpaEntityInformation entityInformation, EntityManager entityManager) {
super(entityInformation, entityManager);
}
@Override
@Transactional
public S save(S entity) {
System.out.println("保存了:"+entity.getClass().getSimpleName());
return super.save(entity);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy