Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 20-06-08, 07:54 PM   #1 (permalink)
Junior Member
 
Join Date: Jun 2008
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 Madhu4u is on a distinguished road
what is differnce between hibernate configuration file and hibernate properties?

hi,

Could anyone pls tell me the diff b/w hibernate configuration file and hibernate properties
Madhu4u is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-06-08, 03:59 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57
Thanked 78 Times in 63 Posts
Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
Re: what is differnce between hibernate configuration file and hibernate properties?

There is no difference speaking technically ,
all the hibernate configurations can be contained in the hibernate.cfg.xml file and the same configurations can also be specified in the hibernate.properties files
When u create a session factory in the hibernate single ton class which creates the database session and connection pools, the class has to read the properties either from the hibernate.cfg.xml or hibernate.properties files.

like connection, databasedialect, maxconnections etc etc, all these properties can be specified in cfg.xml or .properties.

As far as i know approach is different in reading these parameters

Let me know ur questions
__________________
M0h@n
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the file used in hibernate Shailu07 EJB 0 09-05-08 03:01 PM
J2EE - What are the file used in hibernate? preethisingh Java Interview / Technical Questions 1 25-01-07 04:25 PM


All times are GMT +6.5. The time now is 10:59 AM.





Search Engine Optimization by vBSEO 3.1.0