-->
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.  [ 1 post ] 
Author Message
 Post subject: nhibernate and log4net binding param
PostPosted: Fri Jan 06, 2012 5:28 am 
Newbie

Joined: Fri Jan 06, 2012 5:20 am
Posts: 1
Hi all,

First of all, I wishes you a happy new year.

We just inheritate a new application which use nhibernate and log4net but
we also have a bug with it.

we try to have the sql witch is used but the only thing we have is this

Code:
UPDATE ServiceEvents SET CancellationReason = :p0, EventDate = :p1, EndTime = :p2, Modified = :p3, EventIndex = :p4, ServiceId = :p5, Detail = :p6, RealVehicleDistance = :p7, SourceActorId = :p8, ModifiedBy = :p9 WHERE Id = :p10


we try to have the binding param but impossible to find what parameters we have to enabl in the config file.

Code:
   <nhibernate>
      <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
      <add key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect"/>
      <add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleClientDriver"/>
      <add key="hibernate.connection.connection_string" value="user id=svoi;data source=SVOI2;password=user"/>
      <add key="hibernate.show_sql" value="true"/>
    <add key="hibernate.type" value="TRACE"/>
    <add key="hibernate.SQL" value="TRACE"/>
   </nhibernate>


there is our nhibernate configuration section into the app.config file( it's c#).

We found hibernate.sql and hibernat.type into others forum but it was for java and no c# so ...

do you have any idea on how to activate this trace about params binding logging.

thanks

a+


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

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.