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: Michael T. (JIRA) <nh...@gm...> - 2011-05-26 23:48:57
|
[ http://216.121.112.228/browse/NH-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21209#action_21209 ] Michael Teper commented on NH-2739: ----------------------------------- That worked, thank you! Does your last comment mean that the type needs to open up a parameterless constructor? > Can't get ByCode mapping to produce not nullable varbinary(max) > --------------------------------------------------------------- > > Key: NH-2739 > URL: http://216.121.112.228/browse/NH-2739 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Trying to map the following class: > public class MyData > { > public byte[] Data { get; set; } > } > to 'varbinary(max) (not null)' field in SQL Server 2008. > mapper.Class<MyData>(map => > { > map.Property(x => x.Data, m => m.Length(int.MaxValue)); > map.Property(x => x.Data, m => m.NotNullable(true)); > }); > produces 'image(null)' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-26 20:23:56
|
[ http://216.121.112.228/browse/NH-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21208#action_21208 ] Fabio Maulo commented on NH-2742: --------------------------------- Well... I'm not a soothsayer... Probably you have found bug in another place but without classes and mappings we can't be so sure. > Mapping by code does not quote column name for bag order > -------------------------------------------------------- > > Key: NH-2742 > URL: http://216.121.112.228/browse/NH-2742 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Entity Operation has a bag with children of type OperationStep, that have an integer Order property that indicates their order. > Mapping by code: > // set up order or operation steps > mapper.Class<Operation>(map => map.Bag(x => x.Steps, x => x.OrderBy(step => step.Order))); > Query: > var operations = (from op in session.Query<Operation>().Fetch(o => o.Steps) > select op).ToArray(); > SQL: > select operation0_.Id as Id3_0_, > steps1_.Id as Id0_1_, > operation0_.DateCreated as DateCrea2_3_0_, > operation0_.Creator as Creator3_0_, > operation0_.Status as Status3_0_, > steps1_.OperationId as Operatio3_0_1_, > steps1_.[Order] as Order4_0_1_, > steps1_.ExecutionCount as Executio5_0_1_, > steps1_.DateOfNextExecution as DateOfNe6_0_1_, > steps1_.DateOfLastExecution as DateOfLa7_0_1_, > steps1_.TranslationSiloId as Translat8_0_1_, > steps1_.BatchId as BatchId0_1_, > steps1_.ExecutionInterval as Executi10_0_1_, > steps1_.Type as Type0_1_, > steps1_.OperationId as Operatio3_0__, > steps1_.Id as Id0__ > from [Operation] operation0_ > left outer join OperationStep steps1_ > on operation0_.Id = steps1_.OperationId > order by Order > Problem: > The "Order" column in the SQL order by clause is not quoted, resulting in SQL error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-26 20:21:00
|
[ http://216.121.112.228/browse/NH-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21207#action_21207 ] Fabio Maulo commented on NH-2739: --------------------------------- You can use the override accepting the IType: map.Type(NHibernateUtil.BinaryBlob) btw the problem is that the BinaryBlobType has 'internal' ctor. > Can't get ByCode mapping to produce not nullable varbinary(max) > --------------------------------------------------------------- > > Key: NH-2739 > URL: http://216.121.112.228/browse/NH-2739 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Trying to map the following class: > public class MyData > { > public byte[] Data { get; set; } > } > to 'varbinary(max) (not null)' field in SQL Server 2008. > mapper.Class<MyData>(map => > { > map.Property(x => x.Data, m => m.Length(int.MaxValue)); > map.Property(x => x.Data, m => m.NotNullable(true)); > }); > produces 'image(null)' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-26 18:00:57
|
[ http://216.121.112.228/browse/NH-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21206#action_21206 ] Michael Teper commented on NH-2742: ----------------------------------- I believe I *have* configured NH to auto-quote (see for example the table name above), using SchemaMetadataUpdater.QuoteTableAndColumns(configuration); Is there another way to enable auto-quoting? > Mapping by code does not quote column name for bag order > -------------------------------------------------------- > > Key: NH-2742 > URL: http://216.121.112.228/browse/NH-2742 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Entity Operation has a bag with children of type OperationStep, that have an integer Order property that indicates their order. > Mapping by code: > // set up order or operation steps > mapper.Class<Operation>(map => map.Bag(x => x.Steps, x => x.OrderBy(step => step.Order))); > Query: > var operations = (from op in session.Query<Operation>().Fetch(o => o.Steps) > select op).ToArray(); > SQL: > select operation0_.Id as Id3_0_, > steps1_.Id as Id0_1_, > operation0_.DateCreated as DateCrea2_3_0_, > operation0_.Creator as Creator3_0_, > operation0_.Status as Status3_0_, > steps1_.OperationId as Operatio3_0_1_, > steps1_.[Order] as Order4_0_1_, > steps1_.ExecutionCount as Executio5_0_1_, > steps1_.DateOfNextExecution as DateOfNe6_0_1_, > steps1_.DateOfLastExecution as DateOfLa7_0_1_, > steps1_.TranslationSiloId as Translat8_0_1_, > steps1_.BatchId as BatchId0_1_, > steps1_.ExecutionInterval as Executi10_0_1_, > steps1_.Type as Type0_1_, > steps1_.OperationId as Operatio3_0__, > steps1_.Id as Id0__ > from [Operation] operation0_ > left outer join OperationStep steps1_ > on operation0_.Id = steps1_.OperationId > order by Order > Problem: > The "Order" column in the SQL order by clause is not quoted, resulting in SQL error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-26 17:58:55
|
[ http://216.121.112.228/browse/NH-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21205#action_21205 ] Michael Teper commented on NH-2738: ----------------------------------- Whichever is easier, as long as the error message makes it easy to figure out what happened. (e.g. "Property Foo of type Bar could not be mapped because the enum does not contain any members", or something to that effect. Thank you! > Exception thrown when mapping contains empty enum > ------------------------------------------------- > > Key: NH-2738 > URL: http://216.121.112.228/browse/NH-2738 > Project: NHibernate > Issue Type: Improvement > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Minor > > I was playing around with new mapping by code and ConventionModelMapper and ran into an "Array ouf bounds exception". Turned out that one of my entities had an enum property and the enum was empty (I haven't yet added any values). As this was a pretty trivial project, the issue was easy to track down but it would be great if this was handled better by NH. Either this should be ignored (what's the harm?) or the error message should point out the empty enum and the class that was referencing it. > Thank you! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-26 17:56:54
|
[ http://216.121.112.228/browse/NH-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo closed NH-2742. --------------------------- Resolution: Not an Issue Yo can use the OrderBy override accepting the string or you can configure NH to autoquote. > Mapping by code does not quote column name for bag order > -------------------------------------------------------- > > Key: NH-2742 > URL: http://216.121.112.228/browse/NH-2742 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Entity Operation has a bag with children of type OperationStep, that have an integer Order property that indicates their order. > Mapping by code: > // set up order or operation steps > mapper.Class<Operation>(map => map.Bag(x => x.Steps, x => x.OrderBy(step => step.Order))); > Query: > var operations = (from op in session.Query<Operation>().Fetch(o => o.Steps) > select op).ToArray(); > SQL: > select operation0_.Id as Id3_0_, > steps1_.Id as Id0_1_, > operation0_.DateCreated as DateCrea2_3_0_, > operation0_.Creator as Creator3_0_, > operation0_.Status as Status3_0_, > steps1_.OperationId as Operatio3_0_1_, > steps1_.[Order] as Order4_0_1_, > steps1_.ExecutionCount as Executio5_0_1_, > steps1_.DateOfNextExecution as DateOfNe6_0_1_, > steps1_.DateOfLastExecution as DateOfLa7_0_1_, > steps1_.TranslationSiloId as Translat8_0_1_, > steps1_.BatchId as BatchId0_1_, > steps1_.ExecutionInterval as Executi10_0_1_, > steps1_.Type as Type0_1_, > steps1_.OperationId as Operatio3_0__, > steps1_.Id as Id0__ > from [Operation] operation0_ > left outer join OperationStep steps1_ > on operation0_.Id = steps1_.OperationId > order by Order > Problem: > The "Order" column in the SQL order by clause is not quoted, resulting in SQL error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-26 17:54:54
|
[ http://216.121.112.228/browse/NH-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2738: ---------------------------- Issue Type: Improvement (was: Bug) Since an empty enum does not have many sense what we can do is just throw a more descriptive exception > Exception thrown when mapping contains empty enum > ------------------------------------------------- > > Key: NH-2738 > URL: http://216.121.112.228/browse/NH-2738 > Project: NHibernate > Issue Type: Improvement > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Minor > > I was playing around with new mapping by code and ConventionModelMapper and ran into an "Array ouf bounds exception". Turned out that one of my entities had an enum property and the enum was empty (I haven't yet added any values). As this was a pretty trivial project, the issue was easy to track down but it would be great if this was handled better by NH. Either this should be ignored (what's the harm?) or the error message should point out the empty enum and the class that was referencing it. > Thank you! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Richard B. (JIRA) <nh...@gm...> - 2011-05-26 14:41:59
|
[ http://216.121.112.228/browse/NH-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21202#action_21202 ] Richard Brown commented on NH-2733: ----------------------------------- Cheers, thanks for the update. > Using an expression in QueryOver gives: Lambda Parameter not in scope > --------------------------------------------------------------------- > > Key: NH-2733 > URL: http://216.121.112.228/browse/NH-2733 > Project: NHibernate > Issue Type: Bug > Components: QueryOver > Affects Versions: 3.2.0CR1 > Reporter: Roy Jacobs > Assignee: Richard Brown > Priority: Major > Fix For: 3.2.0CR1 > > Attachments: NH2733.zip > > > Among other things we occasionally use an IExpression in a QueryOver 'where', like so: > query.Where(expression); > This used to work quite well in the SVN trunk version of last week, but since then this starts breaking with an ArgumentException saying "Lambda Parameter not in scope". > Now, I've seen that QueryOver got a bit of work done to support things like YearPart etc., so I'm assuming these changes are related. > The expression is constructed like this: > public Expression<Func<Item, bool>> GetExpression(DateTime? myStartDate, DateTime? myStopDate) > { > return item => item.StartDateTime < myStopDate.Value && item.StartDateTime >= myStartDate.Value; > } > The call-stack (copy/pasted from R# test runner) looks like this: > --InvalidOperationException > at System.Linq.Expressions.ExpressionCompiler.GenerateParameterAccess(ILGenerator gen, ParameterExpression p, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateMemberAccess(ILGenerator gen, Expression expression, MemberInfo member, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateLambda(LambdaExpression lambda) > at System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda(LambdaExpression lambda) > at System.Linq.Expressions.LambdaExpression.Compile() > at NHibernate.Impl.ExpressionProcessor.EvaluatesToNull(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 280 > at NHibernate.Impl.ExpressionProcessor.IsMemberExpression(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 335 > at NHibernate.Impl.ExpressionProcessor.FindMemberProjection(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 166 > at NHibernate.Impl.ExpressionProcessor.ProcessSimpleExpression(Expression left, Expression right, ExpressionType nodeType) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 411 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 503 > at NHibernate.Impl.ExpressionProcessor.ProcessAndExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 470 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 506 > at NHibernate.Impl.ExpressionProcessor.ProcessExpression(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 595 > at NHibernate.Criterion.QueryOver`2.Add(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 749 > at NHibernate.Criterion.QueryOver`2.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 357 > at NHibernate.Criterion.QueryOver`2.NHibernate.IQueryOver<TRoot,TSubType>.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 800 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-26 10:47:02
|
[ http://216.121.112.228/browse/NH-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21201#action_21201 ] Andrei Alecu commented on NH-2328: ---------------------------------- Richard, if you're still watching this, I have attached a .patch that fixes this in NH-2741. > Linq query on <Any/> fails > -------------------------- > > Key: NH-2328 > URL: http://216.121.112.228/browse/NH-2328 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Michael Kobaly > Priority: Major > Attachments: NHibernate.Test.zip > > > Please read NHUsers group posting here for description of problem. > http://groups.google.com/group/nhusers/browse_thread/thread/fa831bd703842e1e > I excluded the lib folder from the zip file since upload says not to include dlls. I am using NH 3 Alpha 2 with all supporting dlls. First time posting bug..sorry in advance if I am doing it wrong. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Roy J. (JIRA) <nh...@gm...> - 2011-05-26 09:16:05
|
[ http://216.121.112.228/browse/NH-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21200#action_21200 ] Roy Jacobs commented on NH-2733: -------------------------------- I can confirm it works in our application as well. > Using an expression in QueryOver gives: Lambda Parameter not in scope > --------------------------------------------------------------------- > > Key: NH-2733 > URL: http://216.121.112.228/browse/NH-2733 > Project: NHibernate > Issue Type: Bug > Components: QueryOver > Affects Versions: 3.2.0CR1 > Reporter: Roy Jacobs > Assignee: Richard Brown > Priority: Major > Fix For: 3.2.0CR1 > > Attachments: NH2733.zip > > > Among other things we occasionally use an IExpression in a QueryOver 'where', like so: > query.Where(expression); > This used to work quite well in the SVN trunk version of last week, but since then this starts breaking with an ArgumentException saying "Lambda Parameter not in scope". > Now, I've seen that QueryOver got a bit of work done to support things like YearPart etc., so I'm assuming these changes are related. > The expression is constructed like this: > public Expression<Func<Item, bool>> GetExpression(DateTime? myStartDate, DateTime? myStopDate) > { > return item => item.StartDateTime < myStopDate.Value && item.StartDateTime >= myStartDate.Value; > } > The call-stack (copy/pasted from R# test runner) looks like this: > --InvalidOperationException > at System.Linq.Expressions.ExpressionCompiler.GenerateParameterAccess(ILGenerator gen, ParameterExpression p, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateMemberAccess(ILGenerator gen, Expression expression, MemberInfo member, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateLambda(LambdaExpression lambda) > at System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda(LambdaExpression lambda) > at System.Linq.Expressions.LambdaExpression.Compile() > at NHibernate.Impl.ExpressionProcessor.EvaluatesToNull(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 280 > at NHibernate.Impl.ExpressionProcessor.IsMemberExpression(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 335 > at NHibernate.Impl.ExpressionProcessor.FindMemberProjection(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 166 > at NHibernate.Impl.ExpressionProcessor.ProcessSimpleExpression(Expression left, Expression right, ExpressionType nodeType) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 411 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 503 > at NHibernate.Impl.ExpressionProcessor.ProcessAndExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 470 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 506 > at NHibernate.Impl.ExpressionProcessor.ProcessExpression(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 595 > at NHibernate.Criterion.QueryOver`2.Add(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 749 > at NHibernate.Criterion.QueryOver`2.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 357 > at NHibernate.Criterion.QueryOver`2.NHibernate.IQueryOver<TRoot,TSubType>.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 800 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-05-25 23:01:55
|
[ http://216.121.112.228/browse/NH-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl reassigned NH-2721: -------------------------------- Assignee: (was: Patrick Earl) > List with cascade delete orphan and remove/insert of same item fails > -------------------------------------------------------------------- > > Key: NH-2721 > URL: http://216.121.112.228/browse/NH-2721 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Patrick Earl > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-05-25 23:01:55
|
[ http://216.121.112.228/browse/NH-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21199#action_21199 ] Patrick Earl commented on NH-2721: ---------------------------------- This is related to the not-null reference to the containing object. There is a failing but ignored test committed for this. Basically, this is a long standing issue where NHibernate issues extraneous updates that try to update the reference to the containing object to null when those objects are just about to be deleted. The same invalid update happens when an object is removed and reinserted. > List with cascade delete orphan and remove/insert of same item fails > -------------------------------------------------------------------- > > Key: NH-2721 > URL: http://216.121.112.228/browse/NH-2721 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Patrick Earl > Assignee: Patrick Earl > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-25 22:43:50
|
Generic version of ISession.Merge() ----------------------------------- Key: NH-2743 URL: http://216.121.112.228/browse/NH-2743 Project: NHibernate Issue Type: Improvement Components: Core Affects Versions: 3.2.0Beta1 Reporter: Michael Teper For consistency's sake, it would be nice if there was a generic version of Merge, even if all it did was return (T) Merge(obj) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Richard B. (JIRA) <nh...@gm...> - 2011-05-25 21:16:50
|
[ http://216.121.112.228/browse/NH-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Brown resolved NH-2733. ------------------------------- Resolution: Fixed Fix Version/s: 3.2.0CR1 Thanks for the test case. I've added a few more tests so hopefully this won't slip through the net again. Thanks again for catching this ... it's great to have such early feedback. > Using an expression in QueryOver gives: Lambda Parameter not in scope > --------------------------------------------------------------------- > > Key: NH-2733 > URL: http://216.121.112.228/browse/NH-2733 > Project: NHibernate > Issue Type: Bug > Components: QueryOver > Affects Versions: 3.2.0CR1 > Reporter: Roy Jacobs > Assignee: Richard Brown > Priority: Major > Fix For: 3.2.0CR1 > > Attachments: NH2733.zip > > > Among other things we occasionally use an IExpression in a QueryOver 'where', like so: > query.Where(expression); > This used to work quite well in the SVN trunk version of last week, but since then this starts breaking with an ArgumentException saying "Lambda Parameter not in scope". > Now, I've seen that QueryOver got a bit of work done to support things like YearPart etc., so I'm assuming these changes are related. > The expression is constructed like this: > public Expression<Func<Item, bool>> GetExpression(DateTime? myStartDate, DateTime? myStopDate) > { > return item => item.StartDateTime < myStopDate.Value && item.StartDateTime >= myStartDate.Value; > } > The call-stack (copy/pasted from R# test runner) looks like this: > --InvalidOperationException > at System.Linq.Expressions.ExpressionCompiler.GenerateParameterAccess(ILGenerator gen, ParameterExpression p, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateMemberAccess(ILGenerator gen, Expression expression, MemberInfo member, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) > at System.Linq.Expressions.ExpressionCompiler.GenerateLambda(LambdaExpression lambda) > at System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda(LambdaExpression lambda) > at System.Linq.Expressions.LambdaExpression.Compile() > at NHibernate.Impl.ExpressionProcessor.EvaluatesToNull(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 280 > at NHibernate.Impl.ExpressionProcessor.IsMemberExpression(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 335 > at NHibernate.Impl.ExpressionProcessor.FindMemberProjection(Expression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 166 > at NHibernate.Impl.ExpressionProcessor.ProcessSimpleExpression(Expression left, Expression right, ExpressionType nodeType) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 411 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 503 > at NHibernate.Impl.ExpressionProcessor.ProcessAndExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 470 > at NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 506 > at NHibernate.Impl.ExpressionProcessor.ProcessExpression(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Impl\ExpressionProcessor.cs: line 595 > at NHibernate.Criterion.QueryOver`2.Add(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 749 > at NHibernate.Criterion.QueryOver`2.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 357 > at NHibernate.Criterion.QueryOver`2.NHibernate.IQueryOver<TRoot,TSubType>.Where(Expression`1 expression) in c:\sandbox\nhibernate\src\NHibernate\Criterion\QueryOver.cs: line 800 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Ricardo P. (JIRA) <nh...@gm...> - 2011-05-25 20:21:54
|
[ http://216.121.112.228/browse/NH-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21197#action_21197 ] Ricardo Peres commented on NH-2727: ----------------------------------- For the record, here is what happens: when an entity is lazily loaded from a one-to-many association, its lock mode is set to Read, not None (in memory, at least). If lazy loading is disabled, its lock mode is None, and it no longer fires the event, which, I suppose, is the expected behavior. > Calling ISession.IsDirty Raises SaveOrUpdate Event > -------------------------------------------------- > > Key: NH-2727 > URL: http://216.121.112.228/browse/NH-2727 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.1.0, 3.2.0Beta1 > Reporter: Ricardo Peres > Attachments: FlushTest.zip > > > When calling ISession.IsDirty() after loading an entity which lazy loads another one and doing nothing to them, the SaveOrUpdate event is raised on the lazy loaded entity. > This doesn't happen all the time, only if the lazy loaded entity is not specifically loaded beforehand. > The included test creates the DB and populates it with test records. The HIBERNATE_UNIQUE_KEY table must be created first, since SchemaUpdate does not create it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Daniel G. (JIRA) <nh...@gm...> - 2011-05-25 18:28:19
|
[ http://216.121.112.228/browse/NH-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21196#action_21196 ] Daniel Guenter commented on NH-1452: ------------------------------------ I'll be patching this issue "again" when 3.2 GA comes out along with all of the other little issues that I've reported, patched and nobody has commented on. https://bitbucket.org/nicaog/nhibernate-patches > Join element doesn't support keys with property-refs > ---------------------------------------------------- > > Key: NH-1452 > URL: http://216.121.112.228/browse/NH-1452 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0.CR2 > Reporter: Brian Rumschlag > Priority: Major > Attachments: 1452.patch, NH1452.patch > > > The <join> element does not use the property-ref attribute on it's <key>. > It will always join to the child table by the primary key. > Attached is the failing test case. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-25 18:16:06
|
[ http://216.121.112.228/browse/NH-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21195#action_21195 ] Michael Teper commented on NH-2739: ----------------------------------- I tried adding the following bit to specify the type: map.Property(x => x.Data, m => m.Type<BinaryBlobType>()); but got the following error: [MissingMethodException: No parameterless constructor defined for this object.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241 System.Activator.CreateInstance(Type type, Boolean nonPublic) +69 System.Activator.CreateInstance(Type type) +6 NHibernate.Bytecode.ActivatorObjectsFactory.CreateInstance(Type type) +39 NHibernate.Type.TypeFactory.HeuristicType(String typeName, IDictionary`2 parameters, Nullable`1 length) +574 [MappingException: Could not instantiate IType BinaryBlobType: System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at NHibernate.Bytecode.ActivatorObjectsFactory.CreateInstance(Type type) at NHibernate.Type.TypeFactory.HeuristicType(String typeName, IDictionary`2 parameters, Nullable`1 length)] NHibernate.Type.TypeFactory.HeuristicType(String typeName, IDictionary`2 parameters, Nullable`1 length) +868 NHibernate.Type.TypeFactory.HeuristicType(String typeName, IDictionary`2 parameters) +78 NHibernate.Mapping.SimpleValue.GetHeuristicType() +544 NHibernate.Mapping.SimpleValue.get_Type() +163 NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping) +57 NHibernate.Mapping.Property.IsValid(IMapping mapping) +56 NHibernate.Mapping.PersistentClass.Validate(IMapping mapping) +139 NHibernate.Mapping.RootClass.Validate(IMapping mapping) +45 NHibernate.Cfg.Configuration.ValidateEntities() +240 NHibernate.Cfg.Configuration.Validate() +30 NHibernate.Cfg.Configuration.BuildSessionFactory() +64 > Can't get ByCode mapping to produce not nullable varbinary(max) > --------------------------------------------------------------- > > Key: NH-2739 > URL: http://216.121.112.228/browse/NH-2739 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Trying to map the following class: > public class MyData > { > public byte[] Data { get; set; } > } > to 'varbinary(max) (not null)' field in SQL Server 2008. > mapper.Class<MyData>(map => > { > map.Property(x => x.Data, m => m.Length(int.MaxValue)); > map.Property(x => x.Data, m => m.NotNullable(true)); > }); > produces 'image(null)' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-25 17:29:54
|
[ http://216.121.112.228/browse/NH-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21194#action_21194 ] Michael Teper commented on NH-2739: ----------------------------------- Nullability might be a problem with SchemaAction = SchemaAutoAction.Recreate. When I blew away the database and started from scratch, the image column was created correctly as not null. Would still like to know if there is anything I can do to have NH generate varbinary(max) in place of image. Thanks! > Can't get ByCode mapping to produce not nullable varbinary(max) > --------------------------------------------------------------- > > Key: NH-2739 > URL: http://216.121.112.228/browse/NH-2739 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Trying to map the following class: > public class MyData > { > public byte[] Data { get; set; } > } > to 'varbinary(max) (not null)' field in SQL Server 2008. > mapper.Class<MyData>(map => > { > map.Property(x => x.Data, m => m.Length(int.MaxValue)); > map.Property(x => x.Data, m => m.NotNullable(true)); > }); > produces 'image(null)' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Michael T. (JIRA) <nh...@gm...> - 2011-05-25 17:25:50
|
Mapping by code does not quote column name for bag order -------------------------------------------------------- Key: NH-2742 URL: http://216.121.112.228/browse/NH-2742 Project: NHibernate Issue Type: Bug Components: Mapping by-code Affects Versions: 3.2.0Beta1 Reporter: Michael Teper Priority: Major Entity Operation has a bag with children of type OperationStep, that have an integer Order property that indicates their order. Mapping by code: // set up order or operation steps mapper.Class<Operation>(map => map.Bag(x => x.Steps, x => x.OrderBy(step => step.Order))); Query: var operations = (from op in session.Query<Operation>().Fetch(o => o.Steps) select op).ToArray(); SQL: select operation0_.Id as Id3_0_, steps1_.Id as Id0_1_, operation0_.DateCreated as DateCrea2_3_0_, operation0_.Creator as Creator3_0_, operation0_.Status as Status3_0_, steps1_.OperationId as Operatio3_0_1_, steps1_.[Order] as Order4_0_1_, steps1_.ExecutionCount as Executio5_0_1_, steps1_.DateOfNextExecution as DateOfNe6_0_1_, steps1_.DateOfLastExecution as DateOfLa7_0_1_, steps1_.TranslationSiloId as Translat8_0_1_, steps1_.BatchId as BatchId0_1_, steps1_.ExecutionInterval as Executi10_0_1_, steps1_.Type as Type0_1_, steps1_.OperationId as Operatio3_0__, steps1_.Id as Id0__ from [Operation] operation0_ left outer join OperationStep steps1_ on operation0_.Id = steps1_.OperationId order by Order Problem: The "Order" column in the SQL order by clause is not quoted, resulting in SQL error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-25 15:10:55
|
[ http://216.121.112.228/browse/NH-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21193#action_21193 ] Andrei Alecu commented on NH-2741: ---------------------------------- Oops, I meant NH-2734 not NH-2724 in the previous comment. > CLONE -HQL .class query on <any> mapping does not work > ------------------------------------------------------ > > Key: NH-2741 > URL: http://216.121.112.228/browse/NH-2741 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Andrei Alecu > Priority: Major > Attachments: nh2724 and nh2328.patch > > > Consider the test in trunk for NH-2328. > Modifying it to do this does not work: > var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = Square") > .List<ToyBox>(); > The error is: > System.NullReferenceException : Object reference not set to an instance of an object. > at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.FindSQLFunction(String functionName) in SessionFactoryHelperExtensions.cs: line 45 > at NHibernate.Hql.Ast.ANTLR.Tree.IdentNode.get_DataType() in IdentNode.cs: line 41 > at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.ExtractDataType(IASTNode operand) in BinaryLogicOperatorNode.cs: line 244 > at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.Initialize() in BinaryLogicOperatorNode.cs: line 50 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.PrepareLogicOperator(IASTNode operatorNode) in HqlSqlWalker.cs: line 786 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.comparisonExpr() in HqlSqlWalker.cs: line 6239 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.logicalExpr() in HqlSqlWalker.cs: line 5228 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.whereClause() in HqlSqlWalker.cs: line 4952 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in HqlSqlWalker.cs: line 1706 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in HqlSqlWalker.cs: line 1514 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in HqlSqlWalker.cs: line 540 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in HqlSqlWalker.cs: line 439 > at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in QueryTranslatorImpl.cs: line 590 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in QueryTranslatorImpl.cs: line 449 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in QueryTranslatorImpl.cs: line 354 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in QueryTranslatorImpl.cs: line 71 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(IASTNode ast, String queryIdentifier, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 43 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 21 > at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 24 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 16 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 10 > at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in QueryPlanCache.cs: line 61 > at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in AbstractSessionImpl.cs: line 304 > at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in AbstractSessionImpl.cs: line 283 > at NHibernate.Test.NHSpecificTest.NH2328.Fixture.AnyIs_HqlRequiresNumberIn() in Fixture.cs: line 80 > However, explicitly using a parameter works properly: > var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = :clazz") > .SetParameter("clazz", typeof(Square).FullName).List<ToyBox>(); > Upon further inspection, it works because the implementation calls NullSafeSet() on MetaType while setting the parameter. If the type is specified inline, NullSafeSet isn't called. > I believe the proper fix here would be for the query parser to extract what's after = here and pass it in as a parameter, if possible, so that NullSafeSet() is called. It might involve changes to the grammar files, I'm not sure. > Fixing this bug in the HQL parser should also fix NH-2328. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-25 14:59:58
|
[ http://216.121.112.228/browse/NH-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrei Alecu updated NH-2741: ----------------------------- Attachment: nh2724 and nh2328.patch Fabio, I have created a patch for NH-2724 so that .class = Square now works properly, and this also fixes NH-2328. I have attached it. Please review. > CLONE -HQL .class query on <any> mapping does not work > ------------------------------------------------------ > > Key: NH-2741 > URL: http://216.121.112.228/browse/NH-2741 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Andrei Alecu > Priority: Major > Attachments: nh2724 and nh2328.patch > > > Consider the test in trunk for NH-2328. > Modifying it to do this does not work: > var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = Square") > .List<ToyBox>(); > The error is: > System.NullReferenceException : Object reference not set to an instance of an object. > at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.FindSQLFunction(String functionName) in SessionFactoryHelperExtensions.cs: line 45 > at NHibernate.Hql.Ast.ANTLR.Tree.IdentNode.get_DataType() in IdentNode.cs: line 41 > at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.ExtractDataType(IASTNode operand) in BinaryLogicOperatorNode.cs: line 244 > at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.Initialize() in BinaryLogicOperatorNode.cs: line 50 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.PrepareLogicOperator(IASTNode operatorNode) in HqlSqlWalker.cs: line 786 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.comparisonExpr() in HqlSqlWalker.cs: line 6239 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.logicalExpr() in HqlSqlWalker.cs: line 5228 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.whereClause() in HqlSqlWalker.cs: line 4952 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in HqlSqlWalker.cs: line 1706 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in HqlSqlWalker.cs: line 1514 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in HqlSqlWalker.cs: line 540 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in HqlSqlWalker.cs: line 439 > at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in QueryTranslatorImpl.cs: line 590 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in QueryTranslatorImpl.cs: line 449 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in QueryTranslatorImpl.cs: line 354 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in QueryTranslatorImpl.cs: line 71 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(IASTNode ast, String queryIdentifier, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 43 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 21 > at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 24 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 16 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 10 > at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in QueryPlanCache.cs: line 61 > at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in AbstractSessionImpl.cs: line 304 > at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in AbstractSessionImpl.cs: line 283 > at NHibernate.Test.NHSpecificTest.NH2328.Fixture.AnyIs_HqlRequiresNumberIn() in Fixture.cs: line 80 > However, explicitly using a parameter works properly: > var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = :clazz") > .SetParameter("clazz", typeof(Square).FullName).List<ToyBox>(); > Upon further inspection, it works because the implementation calls NullSafeSet() on MetaType while setting the parameter. If the type is specified inline, NullSafeSet isn't called. > I believe the proper fix here would be for the query parser to extract what's after = here and pass it in as a parameter, if possible, so that NullSafeSet() is called. It might involve changes to the grammar files, I'm not sure. > Fixing this bug in the HQL parser should also fix NH-2328. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-25 14:59:49
|
CLONE -HQL .class query on <any> mapping does not work ------------------------------------------------------ Key: NH-2741 URL: http://216.121.112.228/browse/NH-2741 Project: NHibernate Issue Type: Bug Components: Core Affects Versions: 3.2.0Beta1 Reporter: Andrei Alecu Priority: Major Consider the test in trunk for NH-2328. Modifying it to do this does not work: var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = Square") .List<ToyBox>(); The error is: System.NullReferenceException : Object reference not set to an instance of an object. at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.FindSQLFunction(String functionName) in SessionFactoryHelperExtensions.cs: line 45 at NHibernate.Hql.Ast.ANTLR.Tree.IdentNode.get_DataType() in IdentNode.cs: line 41 at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.ExtractDataType(IASTNode operand) in BinaryLogicOperatorNode.cs: line 244 at NHibernate.Hql.Ast.ANTLR.Tree.BinaryLogicOperatorNode.Initialize() in BinaryLogicOperatorNode.cs: line 50 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.PrepareLogicOperator(IASTNode operatorNode) in HqlSqlWalker.cs: line 786 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.comparisonExpr() in HqlSqlWalker.cs: line 6239 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.logicalExpr() in HqlSqlWalker.cs: line 5228 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.whereClause() in HqlSqlWalker.cs: line 4952 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in HqlSqlWalker.cs: line 1706 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in HqlSqlWalker.cs: line 1514 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in HqlSqlWalker.cs: line 540 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in HqlSqlWalker.cs: line 439 at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in QueryTranslatorImpl.cs: line 590 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in QueryTranslatorImpl.cs: line 449 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in QueryTranslatorImpl.cs: line 354 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in QueryTranslatorImpl.cs: line 71 at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(IASTNode ast, String queryIdentifier, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 43 at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in ASTQueryTranslatorFactory.cs: line 21 at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 24 at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 16 at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in HQLStringQueryPlan.cs: line 10 at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in QueryPlanCache.cs: line 61 at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in AbstractSessionImpl.cs: line 304 at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in AbstractSessionImpl.cs: line 283 at NHibernate.Test.NHSpecificTest.NH2328.Fixture.AnyIs_HqlRequiresNumberIn() in Fixture.cs: line 80 However, explicitly using a parameter works properly: var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = :clazz") .SetParameter("clazz", typeof(Square).FullName).List<ToyBox>(); Upon further inspection, it works because the implementation calls NullSafeSet() on MetaType while setting the parameter. If the type is specified inline, NullSafeSet isn't called. I believe the proper fix here would be for the query parser to extract what's after = here and pass it in as a parameter, if possible, so that NullSafeSet() is called. It might involve changes to the grammar files, I'm not sure. Fixing this bug in the HQL parser should also fix NH-2328. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Jenar (JIRA) <nh...@gm...> - 2011-05-25 12:07:59
|
[ http://216.121.112.228/browse/NH-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21191#action_21191 ] Jenar commented on NH-1452: --------------------------- Update: I mean for NHibernate 3.2.0 ;-) > Join element doesn't support keys with property-refs > ---------------------------------------------------- > > Key: NH-1452 > URL: http://216.121.112.228/browse/NH-1452 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0.CR2 > Reporter: Brian Rumschlag > Priority: Major > Attachments: 1452.patch, NH1452.patch > > > The <join> element does not use the property-ref attribute on it's <key>. > It will always join to the child table by the primary key. > Attached is the failing test case. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Jenar (JIRA) <nh...@gm...> - 2011-05-25 12:05:03
|
[ http://216.121.112.228/browse/NH-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21190#action_21190 ] Jenar commented on NH-1452: --------------------------- Would be great if this issue will get fixed in next NHibernate release, because i need it for some bigger project and this is a "base funtionality" in nativ sql. > Join element doesn't support keys with property-refs > ---------------------------------------------------- > > Key: NH-1452 > URL: http://216.121.112.228/browse/NH-1452 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0.CR2 > Reporter: Brian Rumschlag > Priority: Major > Attachments: 1452.patch, NH1452.patch > > > The <join> element does not use the property-ref attribute on it's <key>. > It will always join to the child table by the primary key. > Attached is the failing test case. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Vitaliy K. (JIRA) <nh...@gm...> - 2011-05-25 07:16:52
|
[ http://216.121.112.228/browse/NH-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21189#action_21189 ] Vitaliy Kryvosheiev commented on NH-2740: ------------------------------------------ Update: Looks like it is not working event if 2nd level cache is off. NHibernate version: 3.2.0.2001 > QueryOver does not work with 2nd level cache if entity contains lazy properties > ------------------------------------------------------------------------------- > > Key: NH-2740 > URL: http://216.121.112.228/browse/NH-2740 > Project: NHibernate > Issue Type: Bug > Components: Core, QueryOver > Affects Versions: 3.2.0Beta1 > Reporter: Vitaliy Kryvosheiev > Priority: Major > > QueryOver<> queries do not work for entities with lazy properties if second-level cache is turned on. > Running such query results in Exception > *Entity:* > [Serializable] > public class UserRole > { > public virtual int Id { get; set; } > public virtual string Name { get;set; } > } > *Mapping:* > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="KudaNado.Core.Entities" assembly="KudaNado.Core" > schema="dbo" default-cascade="save-update"> > <class name="UserRole" table="UserRole"> > <cache usage="nonstrict-read-write" region="LongTerm" /> > <id name="Id" column="ID"> > <generator class="native" /> > </id> > <property name="Name" length="50" not-null="true" lazy="true"/> > </class> > </hibernate-mapping> > *Query:* > var roles = session.QueryOver<UserRole>().Take(2).List(); > ADO.NET Provider: MS SQL "))* > .NET Version: 4.0 > 10:07:46,175 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - [session-id=3e29ff04-f9e6-4498-b95c-2783ce545b9a] opened session at timestamp: 5350678798987264, for session factory: [/9cd392140f24407d9243cc6bd4c7693b] > 10:07:46,178 [TestRunnerThread] INFO [KudaNado.Integration.Tests.MappingIntegrationTests] - Execute query > 10:07:46,210 [TestRunnerThread] DEBUG [NHibernate.Loader.Criteria.CriteriaQueryTranslator] - put criteria= alias=this0_ > 10:07:46,242 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - Opened new IDbCommand, open IDbCommands: 1 > 10:07:46,242 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - Building an IDbCommand object for the SqlString: SELECT TOP (?) this_.ID as ID12_0_ FROM dbo.UserRole this_ > 10:07:46,245 [TestRunnerThread] INFO [NHibernate.Loader.Loader] - SELECT TOP (@p0) this_.ID as ID12_0_ FROM dbo.UserRole this_ > 10:07:46,249 [TestRunnerThread] DEBUG [NHibernate.SQL] - SELECT TOP (@p0) this_.ID as ID12_0_ FROM dbo.UserRole this_;@p0 = 2 [Type: Int32 (0)] > 10:07:46,251 [TestRunnerThread] DEBUG [NHibernate.Connection.DriverConnectionProvider] - Obtaining IDbConnection from Driver > 10:07:46,252 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - ExecuteReader took 0 ms > 10:07:46,253 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - Opened IDataReader, open IDataReaders: 1 > 10:07:46,254 [TestRunnerThread] DEBUG [NHibernate.Loader.Loader] - processing result set > 10:07:46,254 [TestRunnerThread] DEBUG [NHibernate.Loader.Loader] - result set row: 0 > 10:07:46,256 [TestRunnerThread] DEBUG [NHibernate.Type.Int32Type] - returning '1' as column: ID12_0_ > 10:07:46,259 [TestRunnerThread] DEBUG [NHibernate.Loader.Loader] - result row: EntityKey[KudaNado.Core.Entities.UserRole#1] > 10:07:46,263 [TestRunnerThread] DEBUG [NHibernate.Driver.NHybridDataReader] - running NHybridDataReader.Dispose() > 10:07:46,263 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - Closed IDataReader, open IDataReaders :0 > 10:07:46,263 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - DataReader was closed after 11 ms > 10:07:46,264 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - Closed IDbCommand, open IDbCommands: 0 > 10:07:46,266 [TestRunnerThread] DEBUG [NHibernate.Util.ADOExceptionReporter] - could not execute query > [ SELECT TOP (@p0) this_.ID as ID12_0_ FROM dbo.UserRole this_ ] > System.NotSupportedException: Specified method is not supported. > at NHibernate.Proxy.AbstractProxyFactory.GetFieldInterceptionProxy(Object instanceToWrap) > at NHibernate.Tuple.PocoInstantiator.Instantiate() > at NHibernate.Tuple.PocoInstantiator.Instantiate(Object id) > at NHibernate.Tuple.Entity.AbstractEntityTuplizer.Instantiate(Object id) > at NHibernate.Persister.Entity.AbstractEntityPersister.Instantiate(Object id, EntityMode entityMode) > at NHibernate.Impl.SessionImpl.Instantiate(IEntityPersister persister, Object id) > at NHibernate.Impl.SessionImpl.Instantiate(String clazz, Object id) > at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr, Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[] persisters, EntityKey[] keys, Object optionalObject, EntityKey optionalObjectKey, LockMode[] lockModes, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, QueryParameters queryParameters, LockMode[] lockModeArray, EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) > 10:07:46,268 [TestRunnerThread] WARN [NHibernate.Util.ADOExceptionReporter] - System.NotSupportedException: Specified method is not supported. > at NHibernate.Proxy.AbstractProxyFactory.GetFieldInterceptionProxy(Object instanceToWrap) > at NHibernate.Tuple.PocoInstantiator.Instantiate() > at NHibernate.Tuple.PocoInstantiator.Instantiate(Object id) > at NHibernate.Tuple.Entity.AbstractEntityTuplizer.Instantiate(Object id) > at NHibernate.Persister.Entity.AbstractEntityPersister.Instantiate(Object id, EntityMode entityMode) > at NHibernate.Impl.SessionImpl.Instantiate(IEntityPersister persister, Object id) > at NHibernate.Impl.SessionImpl.Instantiate(String clazz, Object id) > at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr, Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[] persisters, EntityKey[] keys, Object optionalObject, EntityKey optionalObjectKey, LockMode[] lockModes, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, QueryParameters queryParameters, LockMode[] lockModeArray, EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) > 10:07:46,268 [TestRunnerThread] ERROR [NHibernate.Util.ADOExceptionReporter] - Specified method is not supported. > 10:07:46,269 [TestRunnerThread] DEBUG [NHibernate.Util.ADOExceptionReporter] - could not execute query > [ SELECT TOP (@p0) this_.ID as ID12_0_ FROM dbo.UserRole this_ ] > [ SELECT TOP (@p0) this_.ID as ID12_0_ FROM dbo.UserRole this_ ] > System.NotSupportedException: Specified method is not supported. > at NHibernate.Proxy.AbstractProxyFactory.GetFieldInterceptionProxy(Object instanceToWrap) > at NHibernate.Tuple.PocoInstantiator.Instantiate() > at NHibernate.Tuple.PocoInstantiator.Instantiate(Object id) > at NHibernate.Tuple.Entity.AbstractEntityTuplizer.Instantiate(Object id) > at NHibernate.Persister.Entity.AbstractEntityPersister.Instantiate(Object id, EntityMode entityMode) > at NHibernate.Impl.SessionImpl.Instantiate(IEntityPersister persister, Object id) > at NHibernate.Impl.SessionImpl.Instantiate(String clazz, Object id) > at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr, Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[] persisters, EntityKey[] keys, Object optionalObject, EntityKey optionalObjectKey, LockMode[] lockModes, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, QueryParameters queryParameters, LockMode[] lockModeArray, EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) > 10:07:46,269 [TestRunnerThread] WARN [NHibernate.Util.ADOExceptionReporter] - System.NotSupportedException: Specified method is not supported. > at NHibernate.Proxy.AbstractProxyFactory.GetFieldInterceptionProxy(Object instanceToWrap) > at NHibernate.Tuple.PocoInstantiator.Instantiate() > at NHibernate.Tuple.PocoInstantiator.Instantiate(Object id) > at NHibernate.Tuple.Entity.AbstractEntityTuplizer.Instantiate(Object id) > at NHibernate.Persister.Entity.AbstractEntityPersister.Instantiate(Object id, EntityMode entityMode) > at NHibernate.Impl.SessionImpl.Instantiate(IEntityPersister persister, Object id) > at NHibernate.Impl.SessionImpl.Instantiate(String clazz, Object id) > at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr, Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[] persisters, EntityKey[] keys, Object optionalObject, EntityKey optionalObjectKey, LockMode[] lockModes, IList hydratedObjects, ISessionImplementor session) > at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, QueryParameters queryParameters, LockMode[] lockModeArray, EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) > 10:07:46,269 [TestRunnerThread] ERROR [NHibernate.Util.ADOExceptionReporter] - Specified method is not supported. > 10:07:46,270 [TestRunnerThread] DEBUG [NHibernate.AdoNet.ConnectionManager] - after autocommit > 10:07:46,271 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - transaction completion > 10:07:46,271 [TestRunnerThread] DEBUG [NHibernate.AdoNet.ConnectionManager] - transaction completed on session with on_close connection release mode; be sure to close the session to release ADO.Net resources! > 10:07:46,280 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - closing session > 10:07:46,280 [TestRunnerThread] DEBUG [NHibernate.AdoNet.AbstractBatcher] - running BatcherImpl.Dispose(true) > 10:07:46,282 [TestRunnerThread] DEBUG [NHibernate.Connection.ConnectionProvider] - Closing connection > 10:07:46,282 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - transaction completion > 10:07:46,282 [TestRunnerThread] DEBUG [NHibernate.AdoNet.ConnectionManager] - transaction completed on session with on_close connection release mode; be sure to close the session to release ADO.Net resources! > 10:07:46,284 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - [session-id=3e29ff04-f9e6-4498-b95c-2783ce545b9a] running ISession.Dispose() > 10:07:46,284 [TestRunnerThread] DEBUG [NHibernate.Impl.SessionImpl] - [session-id=3e29ff04-f9e6-4498-b95c-2783ce545b9a] executing real Dispose(True) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |