net.osgiliath.module.spring.data.jpa.TransactionalSimpleJpaRepository Maven / Gradle / Ivy
package net.osgiliath.module.spring.data.jpa;
import java.io.Serializable;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.support.JpaEntityInformationSupport;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
/**
* Transaction (JTA term) spring data repository.
*
* @author charliemordant
*
* @param
* Entity type.
* @param
* Entity ID type.
*/
@Transactional
public class TransactionalSimpleJpaRepository
extends SimpleJpaRepository {
/**
* Constructor.
*
* @param jpaPersistableEntityInformation
* the entity {@link JpaEntityInformationSupport}.
* @param em
* the {@link EntityManager}
*/
public TransactionalSimpleJpaRepository(
JpaEntityInformationSupport jpaPersistableEntityInformation,
EntityManager em) {
super(jpaPersistableEntityInformation, em);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy