Well I've downloaded and compiled the last version in the repository [NHibernate Alpha 2.0.0. Alpha 1], and the results are even worse.
Now when trying to read objects mapped to one single table (without polymorphism) I have no problem, but will all the polymorphic objects there are exceptions, for example:
ADOException, text message:
Code:
could not execute query
[ SELECT this_.rptd_id as rptd1_10_0_, this_.acc_code as acc2_10_0_, this_.cat_code as cat3_10_0_, this_.cntg_ind_code as cntg4_10_0_, this_.credibility_code as credibil5_10_0_, this_.reliability_code as reliabil6_10_0_, this_.rep_date as rep7_10_0_, this_.rep_time as rep8_10_0_, this_.source_type_code as source9_10_0_, this_.timing_cat_code as timing10_10_0_, this_.ent_cat_code as ent11_10_0_, this_.owner_id as owner12_10_0_, this_.update_seqnr as update13_10_0_, this_.ref_id as ref14_10_0_, this_.rep_org_id as rep15_10_0_, this_1_.offset_dur as offset2_11_0_, this_1_.owner_id as owner3_11_0_, this_1_.update_seqnr as update4_11_0_, this_1_.ref_act_task_id as ref5_11_0_, this_2_.effctv_start_date as effctv2_12_0_, this_2_.effctv_start_time as effctv3_12_0_, this_2_.effctv_end_date as effctv4_12_0_, this_2_.effctv_end_time as effctv5_12_0_, this_2_.owner_id as owner6_12_0_, this_2_.update_seqnr as update7_12_0_, decode(this_.rptd_id, this_1_.rptd_rel_timing_rptd_id, 1, this_2_.rptd_abs_timing_rptd_id, 2, 0) FROM RPTD this_, RPTD_REL_TIMING this_1_, RPTD_ABS_TIMING this_2_ WHERE this_.rptd_id=this_1_.rptd_rel_timing_rptd_id(+) and this_.rptd_id=this_2_.rptd_abs_timing_rptd_id(+) ]
[SQL: SELECT this_.rptd_id as rptd1_10_0_, this_.acc_code as acc2_10_0_, this_.cat_code as cat3_10_0_, this_.cntg_ind_code as cntg4_10_0_, this_.credibility_code as credibil5_10_0_, this_.reliability_code as reliabil6_10_0_, this_.rep_date as rep7_10_0_, this_.rep_time as rep8_10_0_, this_.source_type_code as source9_10_0_, this_.timing_cat_code as timing10_10_0_, this_.ent_cat_code as ent11_10_0_, this_.owner_id as owner12_10_0_, this_.update_seqnr as update13_10_0_, this_.ref_id as ref14_10_0_, this_.rep_org_id as rep15_10_0_, this_1_.offset_dur as offset2_11_0_, this_1_.owner_id as owner3_11_0_, this_1_.update_seqnr as update4_11_0_, this_1_.ref_act_task_id as ref5_11_0_, this_2_.effctv_start_date as effctv2_12_0_, this_2_.effctv_start_time as effctv3_12_0_, this_2_.effctv_end_date as effctv4_12_0_, this_2_.effctv_end_time as effctv5_12_0_, this_2_.owner_id as owner6_12_0_, this_2_.update_seqnr as update7_12_0_, decode(this_.rptd_id, this_1_.rptd_rel_timing_rptd_id, 1, this_2_.rptd_abs_timing_rptd_id, 2, 0) FROM RPTD this_, RPTD_REL_TIMING this_1_, RPTD_ABS_TIMING this_2_ WHERE this_.rptd_id=this_1_.rptd_rel_timing_rptd_id(+) and this_.rptd_id=this_2_.rptd_abs_timing_rptd_id(+)]
Its inner exception is
System.IndexOutOfRangeException, text message:
Code:
clazz_0_
By the way, I forgot to write down the configuration file, maybe the problem is here:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CCIS.Database.Dao.NHibernate.Manager.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections>
<applicationSettings>
<CCIS.Database.Dao.NHibernate.Manager.Properties.Settings>
<setting name="Test" serializeAs="String">
<value>Test</value>
</setting>
</CCIS.Database.Dao.NHibernate.Manager.Properties.Settings>
</applicationSettings>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.OracleDialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">Data Source=ora10pe;User ID=c2iedm;Password=c2iedm</property>
</session-factory>
</hibernate-configuration>
</configuration>
So I guess the alpha version is not yet stable, and the rest of the problem a bug NHibernate 1.4.