
net.sf.esfinge.querybuilder.jpa1.JPALocalRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querybuilder-jpa1-local Show documentation
Show all versions of querybuilder-jpa1-local Show documentation
The Esfinge QueryBuilder JPA1 is the persistence framework for Esfinge QueryBuilder using JPA1.
The newest version!
package net.sf.esfinge.querybuilder.jpa1;
import net.sf.esfinge.querybuilder.annotation.ServicePriority;
@ServicePriority(1)
public class JPALocalRepository extends JPARepository{
@Override
public E save(E obj) {
em.getTransaction().begin();
E saved = super.save(obj);
em.getTransaction().commit();
return saved;
}
@Override
public void delete(Object id) {
em.getTransaction().begin();
super.delete(id);
em.getTransaction().commit();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy