[quote="ganga_tanwar"]Change the code in Bold letters according to your Database
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.driver_class">[b]org.hsqldb.jdbcDriver[/b]</property>
<property name="connection.url">[b]jdbc:hsqldb:hsql://localhost[/b]</property>
<property name="connection.username">[b]sa[/b]</property>
<property name="connection.password">[b]sdf[/b]</property>
<!-- SQL dialect -->
<property name="dialect">[b]org.hibernate.dialect.HSQLDialect[/b]</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<mapping resource="[b]events/Event.hbm.xml[/b]"/>
</session-factory>
</hibernate-configuration>[/quote]
Hi Ganga,
Thanks for the information.
Im not given details about the host name,username,password related to Database.Im given only the datasource name.Can you please let me know how to use it for standalone applications.Is it possible in hibernate.
Cheers,
Sc
|