me.danwi.sqlex.spring.SpringDaoFactory Maven / Gradle / Ivy
package me.danwi.sqlex.spring;
import me.danwi.sqlex.core.DaoFactory;
import me.danwi.sqlex.core.RepositoryLike;
import javax.sql.DataSource;
public class SpringDaoFactory extends DaoFactory {
public SpringDaoFactory(DataSource dataSource, Class extends RepositoryLike> repository) {
super(
new SpringManagedTransactionManager(
dataSource,
new SpringExceptionTranslator(dataSource)
),
repository, new SpringExceptionTranslator(dataSource)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy