• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate-cfg.xml for Oracle 10g

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the
<property name="show_sql">true</property>
<property name="dialect"></property>
<property name="connection.url"></property>
<property name="connection.driver_class"></property>
<property name="connection.username"></property>
<property name="connection.password"></property>

for Oracle 10g...?

what is <property name="connection.datasource"></property> ?
why it is used for & is it really needed for every application....
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


<property name="show_sql">true</property>


This tell Hibernate to log the SQL statements it is issuing.


<property name="dialect"></property>


This tells Hibernate the Dialect to use. This value will change depending on the version of Hibernate you are using. The various dialects Hibernate ships with are described in the Hibernate JavaDocs.


<property name="connection.url"></property>


This is the JDBC connection url Hibernate can use. The value for this is defined in the Oracle JDBC Driver documentation.


<property name="connection.driver_class"></property>


This defines the driver class. Again, this is defined in the Oracle JDBC Driver documentation.


<property name="connection.username"></property>


This is the username to connect to Oracle with.


<property name="connection.password"></property>


...and this is the password they use.


what is <property name="connection.datasource"></property> ?
why it is used for & is it really needed for every application....


This is the JNDI name of a DataSource to use. It would be used in preference to the above properties.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic