[nhusers] Bizarre error when using NHibernate, IPreInsertEventListener, Oracle, batching and sequences

2011-05-06 Thread Krzysztof Koźmic
I'm using Oracle database. I have a IPreUpdateEventListener and IPreInsertEventListener which set CreatedBy and UpdatedBy properties on some of the entities. Those properties point to another entity Person which is assigned in the listeners via Session.Load this all used to work quite nice

[nhusers] Invalid parameter binding Parameter name while sending User Defined Type as Parameter to stored procedure with NHibernate and Oracle

2011-05-06 Thread anupam mishra
Hi I m trying to pass User Defined Type as parameter to stored procedure define in Oracle.Its is working fine with Oracle 11 + ADO.net.But facing problem in integrating with NHibernate. Following are the IType implementation procedure ,User defined Type , Call from NHibernate and Exception

Re: [nhusers] Bizarre error when using NHibernate, IPreInsertEventListener, Oracle, batching and sequences

2011-05-06 Thread Fabio Maulo
IPreUpdate is intended to be used for entity-state checking (veto) not to change the state. What is happening is that NH found a strange operation in a collection (something like somebody have changed it outside my control or I have a bug). For what you need you have to use

Re: [nhusers] SQL Server 2005, float column, validator expects double precision (using ConfORM)

2011-05-06 Thread Fabio Maulo
RegisterColumnType(DbType.Currency, MONEY); RegisterColumnType(DbType.Decimal, DECIMAL(19,5)); RegisterColumnType(DbType.Decimal, 19, DECIMAL($p, $s)); RegisterColumnType(DbType.Double, DOUBLE PRECISION); //synonym for FLOAT(53) RegisterColumnType(DbType.Int16, SMALLINT);

[nhusers] Custom ProxyFactoryFactory - IsInstrumented

2011-05-06 Thread michal
Hi I am using custom ProxyFactory in my project (it is based on the one from the old Proxy Generators project). I almost finished to make it compatible with NH 3.1 (used 2.1.2 before) , only one thing is left. There is new method IsInstrumented in the IProxyFactoryFactory interface. I saw it is

Re: [nhusers] Custom ProxyFactoryFactory - IsInstrumented

2011-05-06 Thread Fabio Maulo
It is to manage lazy-properties On Fri, May 6, 2011 at 9:16 AM, michal michal.ra...@gmail.com wrote: Hi I am using custom ProxyFactory in my project (it is based on the one from the old Proxy Generators project). I almost finished to make it compatible with NH 3.1 (used 2.1.2 before) , only

[nhusers] Re: Custom ProxyFactoryFactory - IsInstrumented

2011-05-06 Thread michal
Thank you for the answer, but I still don't know what to do. IsInstrumented should be true or false in my case ? Proxies are generated by Castle, but GetFieldInterceptionProxy from IProxyFactory not implemented (like LinFu). On 6 Maj, 14:30, Fabio Maulo fabioma...@gmail.com wrote: It is to

Re: [nhusers] Re: Custom ProxyFactoryFactory - IsInstrumented

2011-05-06 Thread Fabio Maulo
you can put true and return a proxy in GetFieldInterceptorProxy. More than that, we have to know which is the target of your custom proxyfactoryfactory (95% of users does not need a custom proxy factory). On Fri, May 6, 2011 at 9:38 AM, michal michal.ra...@gmail.com wrote: Thank you for the

Re: [nhusers] Re: [BUG] LazyInitializer.ReadOnly without lazyInitializer.IsReadOnlySettingAvailable in TwoPhaseLoad.cs

2011-05-06 Thread Fabio Maulo
well... I said what about *a failing test* with a JIRA ticket ? instead I found an image :(( On Thu, May 5, 2011 at 1:18 PM, pcon phill...@gmx.de wrote: I think JIRA is offline... http://jira.nhforge.org/ On 5 Mai, 16:22, Fabio Maulo fabioma...@gmail.com wrote: And what about a failing test

Re: [nhusers] Re: Custom ProxyFactoryFactory - IsInstrumented

2011-05-06 Thread Fabio Maulo
If you don't need lazy-property feature then do the same you are seeing in Linfu proxy factory. On Fri, May 6, 2011 at 11:16 AM, michal michal.ra...@gmail.com wrote: Yes I know it can look little odd. This it result of some bad decisions made some years ago by our team (me too!) . We put huge

[nhusers] Call to configure nhibernate validator is causing a First chance exception

2011-05-06 Thread Matt Mangold
I using fluent nhibernate 1.2, NHibernate 3.1 and Nhibernate Validator 1.3 In my session factory, I am making a call to configure the nhibernate validator as prescribed by the community. When I make a call to ValidatorInitializer.Initialize, I get a first chance exception whenever a property on

[nhusers] Generic abstract class

2011-05-06 Thread abx
I'm trying to have a generic abstract base class to persist many inherited joined subclasses. I need this because a requirement is to keep centralized in one table (the info generic abstract) some informations. Each subclass has a many-to-one relation to the T entity they manage. Everything

[nhusers] SqlDateTime Overflow When Deleting Entity

2011-05-06 Thread Julio Henriquez
Hello, I am familiar with the nature of a SqlDateTime overflow exception. But I just came a cross a situation very peculiar. The exception is thrown when I try to delete an entity not when I try to save it. If there is any information you could provide as to why this happing will be appreciated.

[nhusers] Re: SQL Server 2005, float column, validator expects double precision (using ConfORM)

2011-05-06 Thread Neo
I subclassed the MsSql2005Dialect, and just added a RegisterColumnType(DbType.Double, FLOAT(53)); in the constructor, that seemed to do the trick in my scenario. Thanks for the hint, Fabio, even if cryptic! :) On 6 Maj, 14:14, Fabio Maulo fabioma...@gmail.com wrote:  

Re: [nhusers] Re: SQL Server 2005, float column, validator expects double precision (using ConfORM)

2011-05-06 Thread Fabio Maulo
you was estimulated to think ;) -- Fabio Maulo El 06/05/2011, a las 17:18, Neo ted.parnef...@gmail.com escribió: I subclassed the MsSql2005Dialect, and just added a RegisterColumnType(DbType.Double, FLOAT(53)); in the constructor, that seemed to do the trick in my scenario. Thanks for