Hi All, I am using Hibernate for persistence and I am using SimpleFormController in springmvc. I am developing a simple application to register a user. In my springconfiguration file I am configuring the properties as follows:
My doubt is that do I need to configure the hibernate properties : hibernate.connection.url hibernate.connection.driver_class hibernate.connection.username hibernate.connection.password
as they are already configured in the dataSource property
Which one will be used. Please clear my concepts. Thanks
If you are setting the dataSource of the LocalSessionFactoryBean, then you don't need to set Hibernate's properties. You can set both, but the dataSource settings will override Hibernate's properties. To avoid confusion, you'd better not use Hibernate's properties in this case.