All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.carlopantaleo.jmodel.configuration.EntitiesConfiguration Maven / Gradle / Ivy

There is a newer version: 0.1.5
Show newest version
package com.github.carlopantaleo.jmodel.configuration;

import com.github.carlopantaleo.jmodel.basedao.BaseDao;
import com.jmodel.generated.MyTestTable;
import org.hibernate.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EntitiesConfiguration {
    @Bean
    BaseDao myTestTableBaseDao(SessionFactory sessionFactory) {
        BaseDao myTestTableBaseDao = new BaseDao<>(sessionFactory);
        myTestTableBaseDao.setClazz(MyTestTable.class);
        return myTestTableBaseDao;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy