org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean Java Examples

The following examples show how to use org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HibernateTransactionManagerConfiguration.java    From hypersistence-optimizer with Apache License 2.0 5 votes vote down vote up
@Bean
public AnnotationSessionFactoryBean originalSessionFactory() {
    AnnotationSessionFactoryBean localSessionFactoryBean = new AnnotationSessionFactoryBean();
    localSessionFactoryBean.setDataSource(dataSource());
    localSessionFactoryBean.setPackagesToScan(packagesToScan());
    localSessionFactoryBean.setHibernateProperties(additionalProperties());
    return localSessionFactoryBean;
}
 
Example #2
Source File: BaseDAOImpl.java    From VideoMeeting with Apache License 2.0 4 votes vote down vote up
public AnnotationSessionFactoryBean getSessionFactory() {
	return sessionFactory;
}
 
Example #3
Source File: BaseDAOImpl.java    From VideoMeeting with Apache License 2.0 4 votes vote down vote up
@Autowired
public void setSessionFactory(AnnotationSessionFactoryBean sessionFactory) {
	this.sessionFactory = sessionFactory;
}