ishfady wrote:
Hi
I am very new to Hibernate technology.
I have created Hibernate.properties and  Hibarnet.cfg.xml.
I have place both this files into a project root directory.
When I run my test application. It find hibernate.properties and hibernate.cfg.xml files. But for some reason, data in a hibernate.cfg.xml is empy. Data from properties file is not been pickup my hibernate.cfg.xml.
Doesn't hibernate.cfg.xml,  suppose to pickup data automatically from properties files.
here is the files
hibernate.properties
    # dialect to be used
    	hibernate.dialect = org.hibernate.dialect.MySQLDialect
    # driver used
    	hibernate.connection.driver_class=com.mysql.jdbc.Driver 
    # database name
    	hibernate.connection.url=jdbc:mysql:///myTest
hibernate.cfg.xml
<hibernate-configuration>
	<session-factory>
		<property name="dialect"></property>
		<property name="connection.driver_class"></property>
		<property name="connection.url"></property>
	</session-factory>
</hibernate-configuration>
I was expected property: name, connection.driver_class, connection.url to be pickup from hibernate.properties file.
I am lost here.
Please could you help me.
Many thank