I dug around some more, and it seems that you need to call:
log4net.Config.XmlConfigurator.Configure();
in order to actually configure the logging.
Ok, here's the logs:
2006-05-09 14:52:07,674 [1980] INFO NHibernate.Impl.SessionFactoryObjectFactory - no name configured
2006-05-09 14:52:08,565 [1980] INFO NHibernate.Loader.Loader - SELECT Student.FirstName as firstname0_, Student.LastName as lastname0_, Student.id as id0_, Student.ATANumber as atanumber0_, Belt.RankValue as rankvalue1_, ( SELECT belt_descs.description FROM belt_descs WHERE belt_descs.rankvalue = belt.rankvalue) AS descript3_2_ FROM student Student JOIN belt Belt ON belt.student = student.id GROUP BY student.firstname, student.lastname, student.id, student.atanumber, belt.rankvalue, belt_descs.description;
2006-05-09 14:52:08,565 [1980] INFO NHibernate.Loader.Loader - SELECT Student.FirstName as firstname0_, Student.LastName as lastname0_, Student.id as id0_, Student.ATANumber as atanumber0_, Belt.RankValue as rankvalue1_, ( SELECT belt_descs.description FROM belt_descs WHERE belt_descs.rankvalue = belt.rankvalue) AS descript3_2_ FROM student Student JOIN belt Belt ON belt.student = student.id GROUP BY student.firstname, student.lastname, student.id, student.atanumber, belt.rankvalue, belt_descs.description;
2006-05-09 14:52:08,575 [1980] DEBUG NHibernate.SQL - SELECT Student.FirstName as firstname0_, Student.LastName as lastname0_, Student.id as id0_, Student.ATANumber as atanumber0_, Belt.RankValue as rankvalue1_, ( SELECT belt_descs.description FROM belt_descs WHERE belt_descs.rankvalue = belt.rankvalue) AS descript3_2_ FROM student Student JOIN belt Belt ON belt.student = student.id GROUP BY student.firstname, student.lastname, student.id, student.atanumber, belt.rankvalue, belt_descs.description;
2006-05-09 14:52:08,575 [1980] DEBUG NHibernate.SQL - SELECT Student.FirstName as firstname0_, Student.LastName as lastname0_, Student.id as id0_, Student.ATANumber as atanumber0_, Belt.RankValue as rankvalue1_, ( SELECT belt_descs.description FROM belt_descs WHERE belt_descs.rankvalue = belt.rankvalue) AS descript3_2_ FROM student Student JOIN belt Belt ON belt.student = student.id GROUP BY student.firstname, student.lastname, student.id, student.atanumber, belt.rankvalue, belt_descs.description;
2006-05-09 14:52:08,575 [1980] DEBUG NHibernate.SQL - SELECT Student.FirstName as firstname0_, Student.LastName as lastname0_, Student.id as id0_, Student.ATANumber as atanumber0_, Belt.RankValue as rankvalue1_, ( SELECT belt_descs.description FROM belt_descs WHERE belt_descs.rankvalue = belt.rankvalue) AS descript3_2_ FROM student Student JOIN belt Belt ON belt.student = student.id GROUP BY student.firstname, student.lastname, student.id, student.atanumber, belt.rankvalue, belt_descs.description;
2006-05-09 14:52:09,066 [1980] WARN NHibernate.Util.ADOExceptionReporter - System.ArgumentOutOfRangeException: Field name not found
Parameter name: fieldName
Actual value was id1_.
Looking through it, I definitely do not see an id1_, nor is there another "id" field in the query. Belt has an "Id" field, but it's not explicitly used in the query.
I do see examples with {}'d names behind some things, like the table name in from clauses, but I can't tell if that's supposed to be there, or if it's an oracle thing in the examples.
|