Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration configuration = new Configuration();
- Properties properties = new Properties();
- properties.put("hibernate.connection.username","***");
- properties.put("hibernate.connection.password","***");
- properties.put("hibernate.connection.driver_class","com.mysql.jdbc.Driver");
- properties.put("hibernate.connection.url","jdbc:mysql://localhost:3306/infinitefinancesschema");
- configuration.addAnnotatedClass(ApplTest.class);
- configuration.setProperties(properties);
- SessionFactory sessionFactory = configuration.buildSessionFactory();
- sessionFactory.??? // need to build session factory!
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>5.1.3.Final</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-infinispan</artifactId>
- <version>5.6.0.Final</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-orm</artifactId>
- <version>5.6.0.Final</version>
- </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement