-->
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: nhibernate setup configuration
PostPosted: Wed Aug 01, 2007 12:04 pm 
Newbie

Joined: Mon Jun 11, 2007 5:45 am
Posts: 8
I'm having this really noob problem.

After working a lot with NHibernate at work, I decided to fiddle with it at home, but I can't even get to setting it up :D

I want to make a Data layer, wich is a class library, and use that to call NHibernate, no biggy there I think?

I added an app.config to the project, a reference to nhibernate.dll, and I call
Code:
factory = cfg.BuildSessionFactory();


That's where I get this exception:

The hibernate.connection.driver_class must be specified in the NHibernate configuration section.

I do however have this line in app.config

Code:
<property name="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</property>   


Any help is welcome!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 02, 2007 2:31 am 
Regular
Regular

Joined: Thu Nov 23, 2006 10:29 am
Posts: 106
Location: Belgium
Hello,

When working with a configuration file, you don't have to mention "hibernate.".

So you line should read:
Code:
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>

_________________
Please rate this post if it helped.

X.


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.