-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: why don't I have hibernate.cfg.xml??
PostPosted: Sun Mar 07, 2004 8:52 pm 
Newbie

Joined: Sun Mar 07, 2004 8:46 pm
Posts: 1
fellows, I need to make XPlanner run with Oracle 9 db. XPlanner uses hibernate for that, so that's why I'm here trying to get hibernate work with oracle.

I've browsed the forum and I find many users referring to this hibernate.cfg.xml file, in order to configure hibernate to work with oracle.

what I've done is:

1) enabled hibernate.properties oracle's stuff

hibernate.dialect cirrus.hibernate.sql.OracleDialect
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
hibernate.connection.username ora
hibernate.connection.password ora
hibernate.connection.url jdbc:oracle:thin:@localhost:1521:test

2) what else do I need to do?

why is this hibernate.cfg.xml needed for?

thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 07, 2004 10:26 pm 
Beginner
Beginner

Joined: Thu Feb 05, 2004 10:39 pm
Posts: 44
hibernate.cfg.xml is a replacement for hibernate.properties. Instead of manually assempling your SessionFactory at startup of your application, the Configuration can build you a SessionFactory from your hibernate.cfg.xml file.

Much more convenient. It is possible that you can do this with hibernate.properties as well, but somehow I have always seen hibernate.cfg.xml as an easier way of doing it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.