You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(110) |
Nov
(296) |
Dec
(107) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(212) |
Feb
(263) |
Mar
(161) |
Apr
(183) |
May
(183) |
Jun
(75) |
Jul
(106) |
Aug
(88) |
Sep
(227) |
Oct
(143) |
Nov
(154) |
Dec
(53) |
| 2008 |
Jan
(77) |
Feb
|
Mar
|
Apr
(6) |
May
(103) |
Jun
(296) |
Jul
(54) |
Aug
|
Sep
(379) |
Oct
(283) |
Nov
(224) |
Dec
(214) |
| 2009 |
Jan
(129) |
Feb
(257) |
Mar
(136) |
Apr
(12) |
May
(329) |
Jun
(434) |
Jul
(375) |
Aug
(171) |
Sep
|
Oct
|
Nov
|
Dec
(54) |
| 2010 |
Jan
(198) |
Feb
(76) |
Mar
(3) |
Apr
(1) |
May
|
Jun
(62) |
Jul
(210) |
Aug
(447) |
Sep
(330) |
Oct
(257) |
Nov
(133) |
Dec
(453) |
| 2011 |
Jan
(240) |
Feb
(128) |
Mar
(442) |
Apr
(320) |
May
(428) |
Jun
(141) |
Jul
(13) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: NHibernate J. <mik...@us...> - 2006-11-07 09:49:33
|
[ http://jira.nhibernate.org/browse/NH-776?page=all ] Sergey Koshcheyev closed NH-776: -------------------------------- Resolution: Fixed > one-to-one to proxied types not handling missing associated classes correctly (as null) > --------------------------------------------------------------------------------------- > > Key: NH-776 > URL: http://jira.nhibernate.org/browse/NH-776 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta1 > Reporter: Cris Constantin > Fix For: 1.2.0.Beta2 > Attachments: NH776.zip > > version 1.0.2 correctly return nulls for missing associated classes, even when the associated type was proxied. 1.2.0 throws No row with the given identifier exists. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 16:51:37
|
NHybridDataReader.ReadIntoMemory fails when the result is 0 records. "Invalid attempt to read when no data is present".
-----------------------------------------------------------------------------------------------------------------------
Key: NH-793
URL: http://jira.nhibernate.org/browse/NH-793
Project: NHibernate
Type: Bug
Components: Core
Versions: 1.0.2, 1.0.3
Reporter: dstefanov
Priority: Critical
public bool Read()
{
// DS 6/30/06 - If the result is 0 records the read will always return false
// and the _isMidstream should be false so we don't attempt to read from the
// reader when we do ReadIntoMemory. We were getting an error
// "Invalid attempt to read when no data is present" when trying to get data
// from the reader is such cases.
//
//_isMidstream = true;
//return _reader.Read();
//
_isMidstream = _reader.Read();
return _isMidstream;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: NHibernate J. <mik...@us...> - 2006-11-06 15:33:32
|
[ http://jira.nhibernate.org/browse/NH-779?page=comments#action_14305 ] Hace commented on NH-779: ------------------------- Hi, I just downloaded version 1.0.3 released 2 nov 2006 and indeed: FIXED! Thanks. > abstract class not recognized using multiple mapping files > ---------------------------------------------------------- > > Key: NH-779 > URL: http://jira.nhibernate.org/browse/NH-779 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Hace > Attachments: JoinedSubClass.zip > > When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. > [ AbstractClass.hbm.xml ] > <hibernate-mapping> > <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> > <id name="GeneralItemId" type="Int32" column="GeneralItemId" > > <generator class="identity"/> > </id> > <property name="GeneralText" column="GeneralText" /> > > <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for A.. > </joined-subclass> > > </class> > </hibernate-mapping> > [ ConcreteClassB.hbm.xml ] > <hibernate-mapping> > <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for B.. > </joined-subclass> > </hibernate-mapping> > Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? > [ Code ] > List<AbstractClass> itemList = new List<AbstractClass>(); > ISession session = OurSession.CurrentSession; > ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); > NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); > try > { > IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); > itemList = new List<AbstractClass>(enumerable); > } > catch(Exception exception) > { > ... log exception.. > } > ...... > dostuff > foreach(ConcreteClassA in itemList) > .... > [ /code ] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 14:59:24
|
[ http://jira.nhibernate.org/browse/NH-777?page=all ] Sergey Koshcheyev closed NH-777: -------------------------------- Resolution: Fixed > ArgumentNullException: Value cannot be null. Reflection exception. > ------------------------------------------------------------------ > > Key: NH-777 > URL: http://jira.nhibernate.org/browse/NH-777 > Project: NHibernate > Type: Bug > Components: Reflection Optimizer > Versions: 1.2.0.Beta1 > Reporter: Henrik Feldt > Fix For: 1.2.0.Beta2 > Attachments: Business Entities.rar > > Problem loading and using mapping files - Reflection error. > Stack trace: > [ArgumentNullException: Value cannot be null. > Parameter name: methodInfo] > System.Reflection.Emit.DynamicILGenerator.EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes) +1607931 > NHibernate.Property.BasicSetter.Emit(ILGenerator il) +111 > NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateSetPropertyValuesMethod(IGetter[] getters, ISetter[] setters) +726 > NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor(Type mappedType, IGetter[] getters, ISetter[] setters) +146 > NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer(Type mappedClass, IGetter[] getters, ISetter[] setters) +55 > NHibernate.Persister.Entity.AbstractEntityPersister..ctor(PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory) +6110 > NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping) +173 > NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping cfg) +145 > NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings) +1316 > NHibernate.Cfg.Configuration.BuildSessionFactory() +111 > _Default.GetEntries() in d:\Default.aspx.cs:39 > _Default.btnListEntries_Click(Object sender, EventArgs e) in d:\Default.aspx.cs:90 > Environment: > Windows XP SP2, IIS 5.0, Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 14:41:29
|
[ http://jira.nhibernate.org/browse/NH-779?page=all ] Sergey Koshcheyev closed NH-779: -------------------------------- Fix Version: (was: 1.2.0.Beta2) Resolution: Fixed Seems to work for me using the SVN version, so I'm assuming it was fixed some time ago. > abstract class not recognized using multiple mapping files > ---------------------------------------------------------- > > Key: NH-779 > URL: http://jira.nhibernate.org/browse/NH-779 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Hace > Attachments: JoinedSubClass.zip > > When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. > [ AbstractClass.hbm.xml ] > <hibernate-mapping> > <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> > <id name="GeneralItemId" type="Int32" column="GeneralItemId" > > <generator class="identity"/> > </id> > <property name="GeneralText" column="GeneralText" /> > > <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for A.. > </joined-subclass> > > </class> > </hibernate-mapping> > [ ConcreteClassB.hbm.xml ] > <hibernate-mapping> > <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for B.. > </joined-subclass> > </hibernate-mapping> > Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? > [ Code ] > List<AbstractClass> itemList = new List<AbstractClass>(); > ISession session = OurSession.CurrentSession; > ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); > NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); > try > { > IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); > itemList = new List<AbstractClass>(enumerable); > } > catch(Exception exception) > { > ... log exception.. > } > ...... > dostuff > foreach(ConcreteClassA in itemList) > .... > [ /code ] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 14:17:27
|
[ http://jira.nhibernate.org/browse/NH-792?page=all ] Sergey Koshcheyev closed NH-792: -------------------------------- Resolution: Fixed > Do not wrap exceptions in DriverConnectionProvider.GetConnection > ---------------------------------------------------------------- > > Key: NH-792 > URL: http://jira.nhibernate.org/browse/NH-792 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta1 > Reporter: Sergey Koshcheyev > Priority: Trivial > Fix For: 1.2.0.Beta2 > > ADO.NET exceptions should not get wrapped into ADOExceptions in DriverConnectionProvider.GetConnection because they then get unnecessarily wrapped into another ADOException in SessionFactoryImpl.OpenConnection. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 14:15:34
|
Do not wrap exceptions in DriverConnectionProvider.GetConnection
----------------------------------------------------------------
Key: NH-792
URL: http://jira.nhibernate.org/browse/NH-792
Project: NHibernate
Type: Improvement
Components: Core
Versions: 1.2.0.Beta1
Reporter: Sergey Koshcheyev
Priority: Trivial
Fix For: 1.2.0.Beta2
ADO.NET exceptions should not get wrapped into ADOExceptions in DriverConnectionProvider.GetConnection because they then get unnecessarily wrapped into another ADOException in SessionFactoryImpl.OpenConnection.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: NHibernate J. <mik...@us...> - 2006-11-06 11:12:29
|
[ http://jira.nhibernate.org/browse/NH-686?page=3Dall ] Sergey Koshcheyev updated NH-686: --------------------------------- Priority: Minor (was: Major) type: Improvement (was: Bug) Marking this as improvement since it works as intended. > Formula field in joined subclass possibly works incorrectly > ----------------------------------------------------------- > > Key: NH-686 > URL: http://jira.nhibernate.org/browse/NH-686 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.0.2 > Reporter: Ivanov Mikhail > Priority: Minor > > I have created the following mapping: > <?xml version=3D"1.0" encoding=3D"utf-8" ?>=20 > <hibernate-mapping xmlns=3D"urn:nhibernate-mapping-2.0"> > <class name=3D"CoreIMSEE.Domain.Partner, CoreIMSEE.Domain" table=3D"P= ARTNER"> > =09=09<id name=3D"Id" column=3D"ID" unsaved-value=3D"0" access=3D"field.c= amelcase"> > =09=09=09<generator class=3D"native" /> > =09=09</id> > =09=09 > =09=09<timestamp name=3D"timestamp" column=3D"TS" access=3D"field"/> > <property name=3D"Code" column=3D"CODE" type=3D"String" length=3D"50"= not-null=3D"true" /> > =09=09<property name=3D"Name" column=3D"NAME" type=3D"String" length=3D"1= 00" not-null=3D"true" /> > =09=09<property name=3D"IsVendor" column=3D"IS_VENDOR" type=3D"YesNo" not= -null=3D"true" /> > =09=09<property name=3D"IsCustomer" column=3D"IS_CUSTOMER" type=3D"YesNo"= not-null=3D"true" /> > =09=09<property name=3D"IsClient" column=3D"IS_CLIENT" type=3D"YesNo" not= -null=3D"true" /> > =09=09<property name=3D"IsActive" column=3D"IS_ACTIVE" type=3D"YesNo" not= -null=3D"true" /> > <property name=3D"IsAutoFax" column=3D"AUTOFAX" type=3D"YesNo" not-= null=3D"true" /> > =09=09<many-to-one name=3D"Address" column=3D"ADDRESS_ID" not-null=3D"tru= e" cascade=3D"all" /> > <many-to-one name=3D"CreatedBy" column=3D"CREATED_BY" not-null=3D"fal= se" cascade=3D"none" /> > <many-to-one name=3D"VerifiedBy" column=3D"VERIFIED_BY" not-null=3D"f= alse" cascade=3D"none" /> > <joined-subclass name=3D"CoreIMSEE.Domain.Customer, CoreIMSEE.Domai= n" table=3D"CUSTOMER"> > =09=09=09<key column=3D"ID" /> > =09=09 > =09=09=09<!--timestamp name=3D"timestamp" column=3D"TS" access=3D"field"/= --> > =09=09=09 > =09=09=09<property name=3D"IsDefault" column=3D"IS_DEFAULT" type=3D"YesNo= " not-null=3D"true" /> > =09=09=09<property name=3D"IsVerified" column=3D"IS_VERIFIED" type=3D"Yes= No" not-null=3D"true" /> > =09=09=09<property name=3D"Name2" column=3D"NAME2" /> > =09=09=09<property name=3D"Name3" column=3D"NAME3" /> > <property name=3D"customerName" formula=3D"(select p.Name from Part= ner p where p.Id =3D Id) + ' ' + Name2 + ' ' + Name3" insert=3D"false" upda= te=3D"false" type=3D"String" access=3D"field" /> > <property name=3D"TaxId" column=3D"TAX_ID" type=3D"String" length= =3D"1" not-null=3D"true" /> > =09=09=09<property name=3D"IsTaxExempt" column=3D"TAX_EXEMPT" type=3D"Yes= No" not-null=3D"true" /> > =09=09=09<property name=3D"TxStatementType" column=3D"TX_STATEMENT_TYPE" = type=3D"String" length=3D"50" not-null=3D"true" /> > =09=09=09<property name=3D"TxStatementFrequency" column=3D"TX_STATEMENT_F= REQ" type=3D"String" length=3D"50" not-null=3D"true" /> > =09=09=09<property name=3D"StorageStatementType" column=3D"STORAGE_STATEM= ENT_TYPE" type=3D"String" length=3D"50" not-null=3D"true" /> > =09=09=09<property name=3D"StorageStatementFrequency" column=3D"STORAGE_S= TATEMENT_FREQ" type=3D"String" length=3D"50" not-null=3D"true" /> > =09=09=09<many-to-one name=3D"BillingAddress" column=3D"BILLING_ADDRESS_I= D" cascade=3D"all"/> > =09=09=09<many-to-one name=3D"ParentCustomer" column=3D"PARENT_ID" /> > <set name=3D"CustomerCrossReference" cascade =3D"all"> > <key column=3D"CUSTOMER_ID"/> > <one-to-many class=3D"CoreIMSEE.Domain.CustomerCrossReference, Co= reIMSEE.Domain"/> > </set> > =09=09=09 > =09=09</joined-subclass> > <!--joined-subclass name=3D"CoreIMSEE.Domain.Vendor, CoreIMSEE.Doma= in" table=3D"VENDOR"> > <key column=3D"ID" /> > =20 > </joined-subclass--> > =09=09=09=09 > =09</class> > </hibernate-mapping> > I want to use property Name from Partner in formula field in Customer. Bu= t this works incorrectly (Excaption occurs) because in generated SQL field = Name translates into <customer_alias>.Name instead of <partner_alias.Name>.= I solved this using (select p.Namr from Partner where p.Id =3D Id) > <property name=3D"customerName" formula=3D"(select p.Name from Part= ner p where p.Id =3D Id) + ' ' + Name2 + ' ' + Name3" insert=3D"false" upda= te=3D"false" type=3D"String" access=3D"field" /> > , but this is nor very effective solution because we can just use Partner= table which is Joined in generated SQL. > SQL: > SELECT customer0_.ID as ID6_, customer0_.IS_VERIFIED as IS_VER3_4_6_, cus= tomer0_.BILLING_ADDRESS_ID as BILLI12_4_6_, customer0_.NAME2 as NAME24_6_, = customer0_.NAME3 as NAME34_6_, customer0_.TX_STATEMENT_FREQ as TX_STA9_4_6_= , customer0_.STORAGE_STATEMENT_TYPE as STORA10_4_6_, customer0_.PARENT_ID a= s PAREN13_4_6_, customer0_.IS_DEFAULT as IS_DEF2_4_6_, customer0_.TAX_EXEMP= T as TAX_EX7_4_6_, customer0_.TX_STATEMENT_TYPE as TX_STA8_4_6_, customer0_= .STORAGE_STATEMENT_FREQ as STORA11_4_6_, customer0_.TAX_ID as TAX_ID4_6_, [= customer0__1_].IS_ACTIVE as IS_ACT8_3_6_, [customer0__1_].NAME as NAME3_6_,= [customer0__1_].ADDRESS_ID as ADDRE10_3_6_, [customer0__1_].IS_CUSTOMER as= IS_CUS6_3_6_, [customer0__1_].VERIFIED_BY as VERIF12_3_6_, [customer0__1_]= .CREATED_BY as CREAT11_3_6_, [customer0__1_].TS as TS3_6_, [customer0__1_].= IS_VENDOR as IS_VEN5_3_6_, [customer0__1_].IS_CLIENT as IS_CLI7_3_6_, [cust= omer0__1_].CODE as CODE3_6_, [customer0__1_].AUTOFAX as AUTOFAX3_6_, custom= er0_.Name + ' ' + customer0_.Name2 + ' ' + customer0_.Name3 as f1_6_, addre= ss1_.ID as ID0_, address1_.STATE_CODE as STATE_CODE0_, address1_.FAX1 as FA= X10_, address1_.STREET2 as STREET20_, address1_.TS as TS0_, address1_.COUNT= RY_CODE as COUNTRY18_0_, address1_.FAX2 as FAX20_, address1_.EMAIL1 as EMAI= L10_, address1_.CITY as CITY0_, address1_.PHONE2 as PHONE20_, address1_.SWI= FT_BIC_CODE as SWIFT_BI8_0_, address1_.ZIP as ZIP0_, address1_.CONTACT1 as = CONTACT10_, address1_.PHONE1 as PHONE10_, address1_.STREET3 as STREET30_, a= ddress1_.STREET1 as STREET10_, address1_.EMAIL2 as EMAIL20_, address1_.CONT= ACT2 as CONTACT20_, address1_.PHONE3 as PHONE30_, state2_.CODE as CODE1_, s= tate2_.DESCRIPTION as DESCRIPT2_1_, state2_.COUNTRY_CODE as COUNTRY_3_1_, c= ountry3_.CODE as CODE2_, country3_.DESCRIPTION as DESCRIPT2_2_, country4_.C= ODE as CODE3_, country4_.DESCRIPTION as DESCRIPT2_3_, user5_.ID as ID4_, us= er5_.EMAIL as EMAIL4_, user5_.PASSWORD_EXPIRES as PASSWORD5_4_, user5_.PHON= E as PHONE4_, user5_.FIRST_NAME as FIRST_NAME4_, user5_.TS as TS4_, user5_.= ROWS_PER_PAGE as ROWS_PE10_4_, user5_.PASSWORD as PASSWORD4_, user5_.PREF_C= ULTURE_NAME as PREF_CU11_4_, user5_.USERNAME as USERNAME4_, user5_.LAST_NAM= E as LAST_NAME4_, user6_.ID as ID5_, user6_.EMAIL as EMAIL5_, user6_.PASSWO= RD_EXPIRES as PASSWORD5_5_, user6_.PHONE as PHONE5_, user6_.FIRST_NAME as F= IRST_NAME5_, user6_.TS as TS5_, user6_.ROWS_PER_PAGE as ROWS_PE10_5_, user6= _.PASSWORD as PASSWORD5_, user6_.PREF_CULTURE_NAME as PREF_CU11_5_, user6_.= USERNAME as USERNAME5_, user6_.LAST_NAME as LAST_NAME5_ FROM CUSTOMER custo= mer0_ inner join PARTNER [customer0__1_] on customer0_.ID=3D[customer0__1_]= .ID left outer join ADDRESS address1_ on customer0_.BILLING_ADDRESS_ID=3Dad= dress1_.ID left outer join STATE state2_ on address1_.STATE_CODE=3Dstate2_.= CODE left outer join COUNTRY country3_ on state2_.COUNTRY_CODE=3Dcountry3_.= CODE left outer join COUNTRY country4_ on address1_.COUNTRY_CODE=3Dcountry4= _.CODE left outer join SYS_USER user5_ on [customer0__1_].VERIFIED_BY=3Duse= r5_.ID left outer join SYS_USER user6_ on [customer0__1_].CREATED_BY=3Duser= 6_.ID WHERE customer0_.ID=3D:ID > Exception details: > System.Data.SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > 2006-08-05 09:27:00,310 [4940] WARN NHibernate.Util.ADOExceptionReporter= [(null)] - System.Data.SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > 2006-08-05 09:27:00,310 [4940] ERROR NHibernate.Util.ADOExceptionReporter= [(null)] - Invalid column name 'Name'. > 2006-08-05 09:27:00,310 [4940] DEBUG NHibernate.Impl.BatcherImpl [(null)]= - Closed IDbCommand, open IDbCommands :0 > 2006-08-05 09:27:00,310 [4940] DEBUG NHibernate.Util.ADOExceptionReporter= [(null)] - could not load by id: [CoreIMSEE.Domain.Customer#1] > System.Data.SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject[] values, IType[] types, Object optionalObject, Object optionalID) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject id, IType identifierType, Object optionalObject, Object optionalIdenti= fier) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject, Object optionalId) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject) > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > 2006-08-05 09:27:00,326 [4940] WARN NHibernate.Util.ADOExceptionReporter= [(null)] - System.Data.SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject[] values, IType[] types, Object optionalObject, Object optionalID) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject id, IType identifierType, Object optionalObject, Object optionalIdenti= fier) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject, Object optionalId) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject) > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > 2006-08-05 09:27:00,326 [4940] ERROR NHibernate.Util.ADOExceptionReporter= [(null)] - Invalid column name 'Name'. > 2006-08-05 09:27:00,326 [4940] ERROR CoreIMSEE.Core.Persistence.HqlExecut= or [(null)] - Could not execute query > NHibernate.ADOException: Could not execute query ---> NHibernate.ADOExcep= tion: could not load by id: [CoreIMSEE.Domain.Customer#1] ---> System.Data.= SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject[] values, IType[] types, Object optionalObject, Object optionalID) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject id, IType identifierType, Object optionalObject, Object optionalIdenti= fier) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject, Object optionalId) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject) > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > at NHibernate.Impl.SessionImpl.DoLoad(Type theClass, Object id, Object= optionalObject, LockMode lockMode, Boolean checkDeleted) > at NHibernate.Impl.SessionImpl.DoLoadByClass(Type clazz, Object id, Bo= olean checkDeleted, Boolean allowProxyCreation) > at NHibernate.Impl.SessionImpl.InternalLoad(Type clazz, Object id) > at NHibernate.Type.ManyToOneType.ResolveIdentifier(Object id, ISession= Implementor session) > at NHibernate.Type.EntityType.ResolveIdentifier(Object id, ISessionImp= lementor session, Object owner) > at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) > at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hyd= ratedObjects, Object resultSetId, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryP= arameters queryParameters) > at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryPar= ameters queryParameters, ISet querySpaces, IType[] resultTypes) > at NHibernate.Hql.QueryTranslator.List(ISessionImplementor session, Qu= eryParameters queryParameters) > at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters para= meters) > --- End of inner exception stack trace --- > at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters para= meters) > at NHibernate.Impl.QueryImpl.List() > at CoreIMSEE.Core.Persistence.HqlExecutor.Execute(IHqlQueryFilterState= filterState) in C:\Inetpub\wwwroot\CoreIMSEE.HSBC\CoreIMSEE.Core\Core\Pers= istence\HqlExecutor.cs:line 135 > at CoreIMSEE.Core.Persistence.HqlExecutor.Execute(IFilterState filterS= tate) in C:\Inetpub\wwwroot\CoreIMSEE.HSBC\CoreIMSEE.Core\Core\Persistence\= HqlExecutor.cs:line 73 > 2006-08-05 09:27:00,326 [4940] WARN CoreIMSEE.Core.Persistence.PstInterc= eptor [(null)] - exception is thrown, rolling back a transaction and closin= g current session > NHibernate.ADOException: Could not execute query ---> NHibernate.ADOExcep= tion: could not load by id: [CoreIMSEE.Domain.Customer#1] ---> System.Data.= SqlClient.SqlException: Invalid column name 'Name'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,= Boolean breakConnection) > at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException ex= ception, Boolean breakConnection) > at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserS= tateObject stateObj) > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCom= mand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopy= Handler, TdsParserStateObject stateObj) > at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader = ds, RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavio= r cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async= ) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, D= bAsyncResult result) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior c= mdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior beha= vior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavio= r behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection s= election, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject[] values, IType[] types, Object optionalObject, Object optionalID) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Ob= ject id, IType identifierType, Object optionalObject, Object optionalIdenti= fier) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject, Object optionalId) > at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Ob= ject id, Object optionalObject) > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.NormalizedEntityPersister.Load(Object id, Obje= ct optionalObject, LockMode lockMode, ISessionImplementor session) > at NHibernate.Impl.SessionImpl.DoLoad(Type theClass, Object id, Object= optionalObject, LockMode lockMode, Boolean checkDeleted) > at NHibernate.Impl.SessionImpl.DoLoadByClass(Type clazz, Object id, Bo= olean checkDeleted, Boolean allowProxyCreation) > at NHibernate.Impl.SessionImpl.InternalLoad(Type clazz, Object id) > at NHibernate.Type.ManyToOneType.ResolveIdentifier(Object id, ISession= Implementor session) > at NHibernate.Type.EntityType.ResolveIdentifier(Object id, ISessionImp= lementor session, Object owner) > at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) > at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hyd= ratedObjects, Object resultSetId, ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, Query= Parameters queryParameters, Object optionalObject, Object optionalId, Objec= t[] optionalCollectionKeys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISe= ssionImplementor session, QueryParameters queryParameters, Object optionalO= bject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnPr= oxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryP= arameters queryParameters) > at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryPar= ameters queryParameters, ISet querySpaces, IType[] resultTypes) > at NHibernate.Hql.QueryTranslator.List(ISessionImplementor session, Qu= eryParameters queryParameters) > at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters para= meters) > --- End of inner exception stack trace --- > at Spring.Aop.Framework.AbstractMethodInvocation.InvokeJoinpoint() in = C:\dotnet\2005 patched frameworks\Spring.NET 1.1 Preview 2\src\Spring\Sprin= g.Aop\Aop\Framework\AbstractMethodInvocation.cs:line 275 > at Spring.Aop.Framework.AbstractMethodInvocation.Proceed() in C:\dotne= t\2005 patched frameworks\Spring.NET 1.1 Preview 2\src\Spring\Spring.Aop\Ao= p\Framework\AbstractMethodInvocation.cs:line 224 > at CoreIMSEE.Core.Persistence.PstInterceptor.Invoke(IMethodInvocation = invocation) in C:\Inetpub\wwwroot\CoreIMSEE.HSBC\CoreIMSEE.Core\Core\Persis= tence\PstInterceptor.cs:line 80 --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:51:28
|
[ http://jira.nhibernate.org/browse/NH-776?page=all ] Sergey Koshcheyev updated NH-776: --------------------------------- Fix Version: 1.2.0.Beta2 Version: (was: 1.2.0.Beta2) > one-to-one to proxied types not handling missing associated classes correctly (as null) > --------------------------------------------------------------------------------------- > > Key: NH-776 > URL: http://jira.nhibernate.org/browse/NH-776 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta1 > Reporter: Cris Constantin > Fix For: 1.2.0.Beta2 > Attachments: NH776.zip > > version 1.0.2 correctly return nulls for missing associated classes, even when the associated type was proxied. 1.2.0 throws No row with the given identifier exists. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:51:27
|
[ http://jira.nhibernate.org/browse/NH-779?page=all ] Sergey Koshcheyev updated NH-779: --------------------------------- Fix Version: 1.2.0.Beta2 > abstract class not recognized using multiple mapping files > ---------------------------------------------------------- > > Key: NH-779 > URL: http://jira.nhibernate.org/browse/NH-779 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Hace > Fix For: 1.2.0.Beta2 > Attachments: JoinedSubClass.zip > > When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. > [ AbstractClass.hbm.xml ] > <hibernate-mapping> > <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> > <id name="GeneralItemId" type="Int32" column="GeneralItemId" > > <generator class="identity"/> > </id> > <property name="GeneralText" column="GeneralText" /> > > <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for A.. > </joined-subclass> > > </class> > </hibernate-mapping> > [ ConcreteClassB.hbm.xml ] > <hibernate-mapping> > <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for B.. > </joined-subclass> > </hibernate-mapping> > Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? > [ Code ] > List<AbstractClass> itemList = new List<AbstractClass>(); > ISession session = OurSession.CurrentSession; > ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); > NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); > try > { > IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); > itemList = new List<AbstractClass>(enumerable); > } > catch(Exception exception) > { > ... log exception.. > } > ...... > dostuff > foreach(ConcreteClassA in itemList) > .... > [ /code ] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:51:24
|
[ http://jira.nhibernate.org/browse/NH-777?page=all ] Sergey Koshcheyev updated NH-777: --------------------------------- Fix Version: 1.2.0.Beta2 > ArgumentNullException: Value cannot be null. Reflection exception. > ------------------------------------------------------------------ > > Key: NH-777 > URL: http://jira.nhibernate.org/browse/NH-777 > Project: NHibernate > Type: Bug > Components: Reflection Optimizer > Versions: 1.2.0.Beta1 > Reporter: Henrik Feldt > Fix For: 1.2.0.Beta2 > Attachments: Business Entities.rar > > Problem loading and using mapping files - Reflection error. > Stack trace: > [ArgumentNullException: Value cannot be null. > Parameter name: methodInfo] > System.Reflection.Emit.DynamicILGenerator.EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes) +1607931 > NHibernate.Property.BasicSetter.Emit(ILGenerator il) +111 > NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateSetPropertyValuesMethod(IGetter[] getters, ISetter[] setters) +726 > NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor(Type mappedType, IGetter[] getters, ISetter[] setters) +146 > NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer(Type mappedClass, IGetter[] getters, ISetter[] setters) +55 > NHibernate.Persister.Entity.AbstractEntityPersister..ctor(PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory) +6110 > NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping) +173 > NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping cfg) +145 > NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings) +1316 > NHibernate.Cfg.Configuration.BuildSessionFactory() +111 > _Default.GetEntries() in d:\Default.aspx.cs:39 > _Default.btnListEntries_Click(Object sender, EventArgs e) in d:\Default.aspx.cs:90 > Environment: > Windows XP SP2, IIS 5.0, Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:42:30
|
[ http://jira.nhibernate.org/browse/NH-788?page=comments#action_14302 ] Sergey Koshcheyev commented on NH-788: -------------------------------------- The mapping you attached differs from what you describe. Also, please attach a simple failing test case. > Incrementing a nullable <Version> field fails > --------------------------------------------- > > Key: NH-788 > URL: http://jira.nhibernate.org/browse/NH-788 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta1 > Reporter: Jens Dein > Priority: Minor > Attachments: Serialno.hbm.xml > > I have defined my version tag like this : > <version > name="Hbversion" > column="HBVersion" > type="System.Int32" > unsaved-value="null" > /> > and in my class like this : > private System.Int32? _hbversion; > and when trying to persist the code I get an error in the following code : > public class Int32Type : ValueTypeType, IDiscriminatorType, IVersionType > public virtual object Next( object current ) > { > return ( ( int )current ) + 1; > } > besause current is typecasted to int without checking for null. Code might be changed to the following : > public virtual object Next( object current ) > { > if (current == null) > return Seed; > else > return ((int)current) + 1; > } > I hope I havent misunderstood totally how to use these nullables, but I believe I found advise on the net stating that it should be possible to do it this way in the 1.2 version. > Using .NET 2.0 of course and SQL Server 2005. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:12:23
|
[ http://jira.nhibernate.org/browse/NH-789?page=all ] Sergey Koshcheyev closed NH-789: -------------------------------- Resolution: External Issue > ORA-08177 not wrapped as StaleObjectException with Oracle.DataAcess > ------------------------------------------------------------------- > > Key: NH-789 > URL: http://jira.nhibernate.org/browse/NH-789 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Johannes Schmidt > > The OracleClientDriver does not support milliseconds for Timestamp mapping. So, I decided to used OracleDataClientDriver. I'm using OptimisticLock settings in the mapping file. If there is a concurrency problem, I except a StaleObjectException, but the ADOExceptionReporter throws an exceptions that contains only the text of the Oracle exception for ORA-08177. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:08:29
|
[ http://jira.nhibernate.org/browse/NH-499?page=all ] Sergey Koshcheyev closed NH-499: -------------------------------- Resolution: Fixed > NHibernate filters > ------------------ > > Key: NH-499 > URL: http://jira.nhibernate.org/browse/NH-499 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Alpha1 > Reporter: Luis Ferreira > Assignee: Sergey Koshcheyev > Fix For: 1.2.0.Beta2 > Attachments: FilterTest.zip, filter xsd update.patch, filters.zip > > The porting of Hibernate 3's filtering facility would be very useful for people wanting to deal with versioned historical data, for instance. The kind of coding currently required to handle these issues can make NHibernate usage very query intensive. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 10:08:28
|
[ http://jira.nhibernate.org/browse/NH-786?page=all ] Sergey Koshcheyev updated NH-786: --------------------------------- Fix Version: (was: 1.2.0.Beta2) Postponed. > Port statistics from H3 > ----------------------- > > Key: NH-786 > URL: http://jira.nhibernate.org/browse/NH-786 > Project: NHibernate > Type: New Feature > Components: Core > Reporter: Sergey Koshcheyev > Priority: Trivial > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-06 07:58:29
|
[ http://jira.nhibernate.org/browse/NH-311?page=all ] Sergey Koshcheyev closed NH-311: -------------------------------- Resolution: Won't Fix Doable now using a usertype (possibly parameterized). > null-value attribute for value types > ------------------------------------ > > Key: NH-311 > URL: http://jira.nhibernate.org/browse/NH-311 > Project: NHibernate > Type: Improvement > Components: Core > Versions: beta-0.8.4 > Reporter: Sergey Koshcheyev > > It would be nice to have a null-value attribute for properties (or types). Setting null-value="default" would mean that the default value for the type (DateTime.MinValue, 0, false) would be taken as NULL. It's mostly useful for DateTime so that people who want to have null dates don't have to use the Nullables library. > Other values should be allowed too, just need to think how to parse the attribute value for user-defined structs. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-05 13:27:32
|
Add always-wrap As a Configuration Option On Collections
--------------------------------------------------------
Key: NH-791
URL: http://jira.nhibernate.org/browse/NH-791
Project: NHibernate
Type: New Feature
Components: Core
Versions: 1.2.0.Beta2, 1.2.0.Alpha1, 1.2.0.Beta1
Reporter: John Chapman
Priority: Minor
In order to easily accommodate custom collections NHibernate should offer an option to always wrap the collection instance from the target object. Basically when NHibernate creates a persistent collection from a transient collection it will take the existing collection and wrap it's own persistent collection type around that collection so that the user's collection still exists underneath and performs its own logic.
Add a new configuration option to all collection types called always-wrap which has a type of true/false and defaults to false. When a new persistent object is loaded from the database for this type if always-wrap is true it will take the already created collection and wrap it with a new persistent collection instead of instantiating its own collection type which implements the same interface.
As long as the user collection implements the correct ISet/IDictionary/IList interface the the user would be done adding their custom collection.
For more information see the following post:
http://forum.hibernate.org/viewtopic.php?t=966861
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: NHibernate J. <mik...@us...> - 2006-11-03 17:33:28
|
[ http://jira.nhibernate.org/browse/NH-717?page=comments#action_14292 ] Michael Teper commented on NH-717: ---------------------------------- FYI, only tangentially related, next version of .net (Orcas timeframe) will include a HashSet<T> class. > Please add Predicate generic set operations to ISet<T> > ------------------------------------------------------ > > Key: NH-717 > URL: http://jira.nhibernate.org/browse/NH-717 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Alpha1 > Reporter: Michael Teper > Priority: Minor > > Things like Find<T>, etc. > http://msdn2.microsoft.com/en-us/library/d9hw1as6.aspx > Thanks! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-03 10:13:28
|
[ http://jira.nhibernate.org/browse/NH-499?page=all ] Work on NH-499 started by Sergey Koshcheyev > NHibernate filters > ------------------ > > Key: NH-499 > URL: http://jira.nhibernate.org/browse/NH-499 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Alpha1 > Reporter: Luis Ferreira > Assignee: Sergey Koshcheyev > Fix For: 1.2.0.Beta2 > Attachments: FilterTest.zip, filter xsd update.patch, filters.zip > > The porting of Hibernate 3's filtering facility would be very useful for people wanting to deal with versioned historical data, for instance. The kind of coding currently required to handle these issues can make NHibernate usage very query intensive. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-03 10:13:27
|
[ http://jira.nhibernate.org/browse/NH-499?page=all ] Sergey Koshcheyev reassigned NH-499: ------------------------------------ Assign To: Sergey Koshcheyev > NHibernate filters > ------------------ > > Key: NH-499 > URL: http://jira.nhibernate.org/browse/NH-499 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Alpha1 > Reporter: Luis Ferreira > Assignee: Sergey Koshcheyev > Fix For: 1.2.0.Beta2 > Attachments: FilterTest.zip, filter xsd update.patch, filters.zip > > The porting of Hibernate 3's filtering facility would be very useful for people wanting to deal with versioned historical data, for instance. The kind of coding currently required to handle these issues can make NHibernate usage very query intensive. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-03 10:07:25
|
[ http://jira.nhibernate.org/browse/NH-779?page=all ] Peter Smulovics updated NH-779: ------------------------------- Component: Core Description: When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. [ AbstractClass.hbm.xml ] <hibernate-mapping> <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> <id name="GeneralItemId" type="Int32" column="GeneralItemId" > <generator class="identity"/> </id> <property name="GeneralText" column="GeneralText" /> <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> <key column="GeneralItemId" /> ..concrete properties for A.. </joined-subclass> </class> </hibernate-mapping> [ ConcreteClassB.hbm.xml ] <hibernate-mapping> <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> <key column="GeneralItemId" /> ..concrete properties for B.. </joined-subclass> </hibernate-mapping> Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? [ Code ] List<AbstractClass> itemList = new List<AbstractClass>(); ISession session = OurSession.CurrentSession; ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); try { IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); itemList = new List<AbstractClass>(enumerable); } catch(Exception exception) { ... log exception.. } ...... dostuff foreach(ConcreteClassA in itemList) .... [ /code ] was: When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. [ AbstractClass.hbm.xml ] <hibernate-mapping> <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> <id name="GeneralItemId" type="Int32" column="GeneralItemId" > <generator class="identity"/> </id> <property name="GeneralText" column="GeneralText" /> <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> <key column="GeneralItemId" /> ..concrete properties for A.. </joined-subclass> </class> </hibernate-mapping> [ ConcreteClassB.hbm.xml ] <hibernate-mapping> <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> <key column="GeneralItemId" /> ..concrete properties for B.. </joined-subclass> </hibernate-mapping> Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? [ Code ] List<AbstractClass> itemList = new List<AbstractClass>(); ISession session = OurSession.CurrentSession; ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); try { IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); itemList = new List<AbstractClass>(enumerable); } catch(Exception exception) { ... log exception.. } ...... dostuff foreach(ConcreteClassA in itemList) .... [ /code ] Assigned component 'Core' > abstract class not recognized using multiple mapping files > ---------------------------------------------------------- > > Key: NH-779 > URL: http://jira.nhibernate.org/browse/NH-779 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Hace > Attachments: JoinedSubClass.zip > > When an abstract class and (one or more) joined-subclasses are not in one mapping file, but joined-subclasses are in separate mappingfiles, the connection between the abstract class and the joined subclasses is lost. An error of 'cannot instantiate abstract class' occurs. > [ AbstractClass.hbm.xml ] > <hibernate-mapping> > <class name="Namespace.Common.AbstractClass, Namespace.Common" table="GeneralItem"> > <id name="GeneralItemId" type="Int32" column="GeneralItemId" > > <generator class="identity"/> > </id> > <property name="GeneralText" column="GeneralText" /> > > <joined-subclass name="Namespace.Common.A.ConcreteClassA, Namespace.Common.A" table="ItemsA" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for A.. > </joined-subclass> > > </class> > </hibernate-mapping> > [ ConcreteClassB.hbm.xml ] > <hibernate-mapping> > <joined-subclass name="Namespace.Common.B.ConcreteClassB, Namespace.Common.B" table="ItemsB" extends="Namespace.Common.AbstractClass, Namespace.Common"> > <key column="GeneralItemId" /> > ..concrete properties for B.. > </joined-subclass> > </hibernate-mapping> > Items for ConcreteClassB will not be loaded correctly, only because the joined-subclass is not in the SAME mappingfile as ConcreteClassA ? > [ Code ] > List<AbstractClass> itemList = new List<AbstractClass>(); > ISession session = OurSession.CurrentSession; > ICriteria NHibernateCriteria = session.CreateCriteria(typeof(AbstractClass)); > NHibernateCriteria.Add(Expression.In("GeneralItemId", generalItemIds.ToArray())); > try > { > IEnumerable<AbstractClass> enumerable = (AbstractClass[])ArrayList.Adapter(NHibernateCriteria.List()).ToArray(typeof(AbstractClass)); > itemList = new List<AbstractClass>(enumerable); > } > catch(Exception exception) > { > ... log exception.. > } > ...... > dostuff > foreach(ConcreteClassA in itemList) > .... > [ /code ] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-02 21:29:31
|
[ http://jira.nhibernate.org/browse/NH-738?page=comments#action_14281 ] Mike Nichols commented on NH-738: --------------------------------- Thanks Fabio. I had come that workaround but was hoping the parser upgrade might not be so difficult. > HQL select new generics support > ------------------------------- > > Key: NH-738 > URL: http://jira.nhibernate.org/browse/NH-738 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta1 > Reporter: Mike Nichols > > Given class Pair<int,string> that has a constructor Pair(int i, string s), HQL fails to parse out the generic parameter tokens when trying the following expression: 'select new Pair<int,string>(p.Id,p.Name) from Person p' > The <import/> is used to pull in this custom Pair class. > The default error " , expected in SELECT ..." appears, but this is misleading. > Actually, the tokens in the QueryTranslator class' ConcreteQueries() method aren't parsed correctly when generic "<>" symbols are present in the query. It reads the comma in the generic parameter list as a field separator and doesn't recognize the less-than/greater-than symbols. > Seems like this could be a powerful and (simple?) improvement ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-02 14:35:40
|
[ http://jira.nhibernate.org/browse/NH-784?page=comments#action_14280 ] Fabio Maulo commented on NH-784: -------------------------------- Yes, but is different than H3.2 work. Any way... i think that: - Exception if an unknown property was found in session-factory section. and/or - Change the nhibernate-configuration.xsd is a good improvement to prevent some others issue. > NHibernate should throw exception on failed driver load > ------------------------------------------------------- > > Key: NH-784 > URL: http://jira.nhibernate.org/browse/NH-784 > Project: NHibernate > Type: Improvement > Components: Data Providers > Reporter: Al Twohill > Priority: Trivial > > For full background on where this issue arises from, see http://forum.hibernate.org/viewtopic.php?t=966582&highlight= > When Configuration.Configure() is called, if NHibernate is unable to load a database driver for whatever reason (missing dll, incorrect hibernate.cfg.xml, etc) it falls back to returning a UserSuppliedConnectionProvider without an ADO.Net connection attached to it. This causes any use of Session (eg accessing database) to throw an exception. This is extremely difficult to debug, as there is absolutely no indication as to why a UserSuppliedConnectionProvider is returned. > I propose that instead of returning a UserSuppliedConnectionProvider, NHibernate should throw an exception along the lines of "Cannot Load Driver", and give a reason why. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-02 14:12:37
|
[ http://jira.nhibernate.org/browse/NH-789?page=comments#action_14279 ] Sergey Koshcheyev commented on NH-789: -------------------------------------- Well, I can't do anything if the driver doesn't want to store them. As for the exception you are getting, I believe it has nothing to do with NHibernate. Feel free to prove me wrong. > ORA-08177 not wrapped as StaleObjectException with Oracle.DataAcess > ------------------------------------------------------------------- > > Key: NH-789 > URL: http://jira.nhibernate.org/browse/NH-789 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Johannes Schmidt > > The OracleClientDriver does not support milliseconds for Timestamp mapping. So, I decided to used OracleDataClientDriver. I'm using OptimisticLock settings in the mapping file. If there is a concurrency problem, I except a StaleObjectException, but the ADOExceptionReporter throws an exceptions that contains only the text of the Oracle exception for ORA-08177. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: NHibernate J. <mik...@us...> - 2006-11-02 13:57:33
|
[ http://jira.nhibernate.org/browse/NH-789?page=comments#action_14278 ] Johannes Schmidt commented on NH-789: ------------------------------------- But I do need the milliseconds! > ORA-08177 not wrapped as StaleObjectException with Oracle.DataAcess > ------------------------------------------------------------------- > > Key: NH-789 > URL: http://jira.nhibernate.org/browse/NH-789 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Johannes Schmidt > > The OracleClientDriver does not support milliseconds for Timestamp mapping. So, I decided to used OracleDataClientDriver. I'm using OptimisticLock settings in the mapping file. If there is a concurrency problem, I except a StaleObjectException, but the ADOExceptionReporter throws an exceptions that contains only the text of the Oracle exception for ORA-08177. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |