-->
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: How to make the NHibernate-Example run with the Firebird?
PostPosted: Mon Aug 15, 2005 3:22 am 
Please tell me how can I do, when I changed the "app.xml" Configur file to fit for firebire database, It dosen't work. what should I do ? :?


Top
  
 
 Post subject:
PostPosted: Mon Aug 15, 2005 7:40 am 
Hi,

here is an example:

<nhibernate>
<add
key="hibernate.show_sql"
value="true"
/>
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider"
/>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.FirebirdDriver"
/>
<add
key="hibernate.dialect"
value="NHibernate.Dialect.FirebirdDialect"
/>
<add
key="hibernate.connection.connection_string"
value="ServerType=1;User=YourUserName;Password=YourPassWord;Dialect=3;Database=cpt.fdb"
/>

One more hint: You can directly execute SQL statements via IDbCommand object. For example:

IDbCommand cmd;
cmd.CommandText = SQL-Statement
object result = cmd.ExecuteScalar();

You will see that COUNT(*) statements are multiple times faster with direct SQL instead of native NHibernate and most other things too. That's the prize you have to pay for the encapsulation I guess. Beside that NHibernate is quite interesting. Couldn't get GUIDs with charset OCTETS working though (see my other post) and finally went back to FIrebird native. A pity, I liked what I saw so far.

Stefan


Top
  
 
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.