![]() ![]() tHibernateProperties(hibernateProperties()) īasicDataSource dataSource = new BasicDataSource() ĭtDriverClassName("org.h2.Driver") ĭataSource. SLF4J can direct your logging output to several logging frameworks (NOP, Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on your chosen binding. Do not use this release of Hibernate Annotations with an older version of Hibernate 3.x This release is known to work on Hibernate core 3.1.0 Make sure you have JDK 5.0 installed. ![]() Let’s create our HibernateConfig class to configure Hibernate 6 with Spring: class HibernateConf LocalSessionFactoryBean sessionFactory() ) Hibernate Annotations utilizes Simple Logging Facade for Java (SLF4J) in order to log various system events. For using Hibernate 6 with Spring, we have to define beans for LocalSessionFactoryBean, DataSource, PlatformTransactionManager, and some Hibernate-specific properties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |