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: Fabio M. (JIRA) <nh...@gm...> - 2011-05-30 14:09:40
|
[ http://216.121.112.228/browse/NH-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2744: ---------------------------- Affects Version/s: (was: 3.2.0Beta1) (was: 3.2.0Alpha3) (was: 3.2.0Alpha2) (was: 3.2.0Alpha1) (was: 3.0.0.GA) > NewArrayInit Is not Implemented > ------------------------------- > > Key: NH-2744 > URL: http://216.121.112.228/browse/NH-2744 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Evgeniy > Priority: Major > > .NET 4.0 > MS SQL 2005 > NHIbernate 3.0.0 GA > LINQ NewArrayInit Is not Implemented in > NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitExpression(Expression expression) > I think it's needed feature cause we need a plain projection to object[] from > Query<T>: > session.Query<Foo>.Select(obj => new object[] {obj.A, obj.B, obj.C}).ToList(); -- 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-30 14:07:49
|
[ http://216.121.112.228/browse/NH-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2750: ---------------------------- Affects Version/s: (was: 3.2.0Beta2) (was: 3.2.0Beta1) (was: 3.2.0Alpha3) (was: 3.2.0Alpha2) (was: 3.2.0Alpha1) 3.1.0 > NHibernate Listeners Configuration Improvement > ---------------------------------------------- > > Key: NH-2750 > URL: http://216.121.112.228/browse/NH-2750 > Project: NHibernate > Issue Type: Improvement > Components: Core > Affects Versions: 3.1.0 > Reporter: Stefan Sedich > Assignee: Steve Bohlen > Attachments: lambda-listeners.patch > > > I was looking at the new configuration (which I do quite like) in NH 3.2, but noticed the lambda based configuration does not > allow a nice way to configure listeners, I have created a patch fort his and attached it to the email, the new configuration would now be possible like so: > new Configuration() > .DataBaseIntegration(db => > { > db.Dialect<MsSql2000Dialect>(); > db.BatchSize = 15; > }) > .Listeners(l => > { > l.AppendListener(ListenerType.Load, new FooListener()); > }); -- 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-30 14:07:47
|
[ http://216.121.112.228/browse/NH-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21220#action_21220 ] Fabio Maulo commented on NH-2296: --------------------------------- The solution is in a TODO inside QueryLoader.PrepareQueryCommand > Subselect fetching strategy with a "SetMaxResults" query generates *extremely* inefficient sql > ---------------------------------------------------------------------------------------------- > > Key: NH-2296 > URL: http://216.121.112.228/browse/NH-2296 > Project: NHibernate > Issue Type: Bug > Components: DataProviders / Dialects > Affects Versions: 3.0.0.Alpha2 > Reporter: Gabe Moothart > Priority: Critical > Attachments: NH2296.Test.patch, nhib_test.zip > > > Observed in NHibernate 3.0 Alpha 2, and also 2.1.2.GA, with the SqlServer2008 dialect. > Assume you have a master table with a one-to-many association on a detail table, and that association has the subselect fetching strategy. > If you issue a simple query against the master object using SetMaxResults to restrict the number of rows returned, and then access one of the detail objects (triggering the subselect fetch query), the subselect sql will not be generated with a "TOP". This results in a query that returns an unbounded number of unnecessary records! > A simple example, from the attached reproduction: > var qry = sess.CreateQuery("select o from Order o") > .SetMaxResults(2) > .List<Order>(); > // trigger lazy-loading of products, using subselect fetch. > string sr = orders[0].Products[0].StatusReason; > Generates the following sql: > NHibernate: select TOP (@p0) [...] > from [Order] order0_;@p0 = 2 [Type: Int32 (0)] > NHibernate: SELECT [...] FROM [Product] products0_ > WHERE products0_.Order_id in (select order0_.Id from [Order] order0_) > You can see that the subselect in the second query is unbounded and returns every Product attached to *any* order, not just the top two! I've attached a simple solution containing a reproducible test case. Run the console application and inspect the SQL that is output. You can clearly see what I am talking about. > This makes subselect fetching practically useless for most scenarios. In my case it returns 20,000 rows when 20 or so would do. I consider it a critical issue. -- 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-30 14:01:43
|
[ http://216.121.112.228/browse/NH-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo resolved NH-2736. ----------------------------- Resolution: Fixed Fix Version/s: 3.2.0CR1 > Inverted parameters in HQL statement using take > ----------------------------------------------- > > Key: NH-2736 > URL: http://216.121.112.228/browse/NH-2736 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta2 > Reporter: Andrei > Fix For: 3.2.0Beta2 > > Attachments: Debug.jpg, NH2736.patch > > > Hello, > When I create a HQL query using parameters the parameters are inverted. > Here is an example (I'll attach a test as soon as I have the issue number): > var query = session.CreateQuery("select o.Id, i.Id from SalesOrder o left join o.Items i with i.Quantity = :p0 take :p1"); > query.SetParameter("p0", 1); > query.SetParameter("p1", 2); > var result = query.List(); > Assert.That(result.Count, Is.EqualTo(2)); > The SQL Statement is: > exec sp_executesql N'select TOP (@p0) salesorder0_.Id as col_0_0_, items1_.Id as col_1_0_ from SalesOrder salesorder0_ left outer join Item items1_ on salesorder0_.Id=items1_.SalesOrder and (items1_.Quantity=@p1)',N'@p0 int,@p1 int',@p0=1,@p1=2 > So the query selects the top 1 rows and the quantity column is filtered with 2. > Probably this bug is related with the implementation that allows to specify the take rows using parameters. > Thanks, > Andrei -- 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: Steve B. (JIRA) <nh...@gm...> - 2011-05-29 19:11:40
|
[ http://216.121.112.228/browse/NH-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Bohlen reassigned NH-2750: -------------------------------- Assignee: Steve Bohlen > NHibernate Listeners Configuration Improvement > ---------------------------------------------- > > Key: NH-2750 > URL: http://216.121.112.228/browse/NH-2750 > Project: NHibernate > Issue Type: Improvement > Components: Core > Affects Versions: 3.2.0Alpha1, 3.2.0Alpha2, 3.2.0Alpha3, 3.2.0Beta1, 3.2.0CR1 > Reporter: Stefan Sedich > Assignee: Steve Bohlen > Attachments: lambda-listeners.patch > > > I was looking at the new configuration (which I do quite like) in NH 3.2, but noticed the lambda based configuration does not > allow a nice way to configure listeners, I have created a patch fort his and attached it to the email, the new configuration would now be possible like so: > new Configuration() > .DataBaseIntegration(db => > { > db.Dialect<MsSql2000Dialect>(); > db.BatchSize = 15; > }) > .Listeners(l => > { > l.AppendListener(ListenerType.Load, new FooListener()); > }); -- 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-29 16:08:37
|
[ http://216.121.112.228/browse/NH-2729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl resolved NH-2729. ------------------------------ Resolution: Fixed Fix Version/s: 3.2.0CR1 Assignee: Patrick Earl This should be working aside from the related issue described in NH-2731. > Parameter values are not set using OffsetStartsAtOne > ---------------------------------------------------- > > Key: NH-2729 > URL: http://216.121.112.228/browse/NH-2729 > Project: NHibernate > Issue Type: Bug > Components: DataProviders / Dialects > Affects Versions: 3.2.0Beta1 > Reporter: Patrick Earl > Assignee: Patrick Earl > Fix For: 3.2.0CR1 > > > While doing this, confirm that the limit parameters are also set properly according to dialect parameters. -- 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-29 16:01:41
|
[ http://216.121.112.228/browse/NH-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21218#action_21218 ] Patrick Earl commented on NH-2731: ---------------------------------- This is related to the HQL parameterized skip/take support. If somebody says skip 2 take 3, we might want the actual parameters used in the call to the database to be offset=3 (for OffsetStartsAtOne) and limit=5 (for UseMaxForLimit). Our implementation for HQL should be abstracting this and not passing the parameter values directly to the database. > Limit parameters should be updated on each query execution > ---------------------------------------------------------- > > Key: NH-2731 > URL: http://216.121.112.228/browse/NH-2731 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Patrick Earl > > Limits that are set as parameters should be adjusted according to the UseMaxForLimit and OffsetStartsAtOne parameters. Consider also cases where constants and parameters are mixed. -- 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: Stefan S. (JIRA) <nh...@gm...> - 2011-05-29 04:51:35
|
NHibernate Listeners Configuration Improvement ---------------------------------------------- Key: NH-2750 URL: http://216.121.112.228/browse/NH-2750 Project: NHibernate Issue Type: Improvement Components: Core Affects Versions: 3.2.0Beta1, 3.2.0Alpha3, 3.2.0Alpha2, 3.2.0Alpha1, 3.2.0CR1 Reporter: Stefan Sedich Attachments: lambda-listeners.patch I was looking at the new configuration (which I do quite like) in NH 3.2, but noticed the lambda based configuration does not allow a nice way to configure listeners, I have created a patch fort his and attached it to the email, the new configuration would now be possible like so: new Configuration() .DataBaseIntegration(db => { db.Dialect<MsSql2000Dialect>(); db.BatchSize = 15; }) .Listeners(l => { l.AppendListener(ListenerType.Load, new FooListener()); }); -- 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-29 02:44:38
|
[ http://216.121.112.228/browse/NH-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl resolved NH-2749. ------------------------------ Resolution: Fixed > Externalize Remotion.Linq namespace > ----------------------------------- > > Key: NH-2749 > URL: http://216.121.112.228/browse/NH-2749 > Project: NHibernate > Issue Type: Improvement > Components: Linq Provider > Affects Versions: 3.2.0Beta1 > Reporter: Patrick Earl > Assignee: Patrick Earl > Fix For: 3.2.0CR1 > > > In order to extend the Linq components in sophisticated ways, it's necessary to utilize classes from the Remotion.Linq namespace. Even though these aren't considered fully supported parts of the NHibernate API, they are very useful in some cases. Because it's been requested by users, recommended by the Remotion authors, and fits with the easy-extensibility strategy of NHibernate, these classes have been exposed. Conflicts with other versions of the Remotion.Linq library are considered unlikely enough to live with this risk. -- 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-29 02:44:36
|
Externalize Remotion.Linq namespace ----------------------------------- Key: NH-2749 URL: http://216.121.112.228/browse/NH-2749 Project: NHibernate Issue Type: Improvement Components: Linq Provider Affects Versions: 3.2.0Beta1 Reporter: Patrick Earl Assignee: Patrick Earl Fix For: 3.2.0CR1 In order to extend the Linq components in sophisticated ways, it's necessary to utilize classes from the Remotion.Linq namespace. Even though these aren't considered fully supported parts of the NHibernate API, they are very useful in some cases. Because it's been requested by users, recommended by the Remotion authors, and fits with the easy-extensibility strategy of NHibernate, these classes have been exposed. Conflicts with other versions of the Remotion.Linq library are considered unlikely enough to live with this risk. -- 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: Radu B. (JIRA) <nh...@gm...> - 2011-05-29 00:06:45
|
[ http://216.121.112.228/browse/NH-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21217#action_21217 ] Radu Ban commented on NH-2380: ------------------------------ same as NH-2645 and NH-2486 > Cannot perform distinct when selecting an anonymous type > -------------------------------------------------------- > > Key: NH-2380 > URL: http://216.121.112.228/browse/NH-2380 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Beta1 > Reporter: John Weber > Attachments: NH2380.zip > > > Attempting to execute a Linq query that selects out an anonymous type will result in a NotSupportedException being thrown. For example, performing the following query: > session.Query<Person>().Select(a => new { a.Name }).Distinct().ToArray(); > will result in: > System.NotSupportedException : Expression type 10005 is not supported by this SelectClauseVisitor. -- 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: Radu B. (JIRA) <nh...@gm...> - 2011-05-29 00:04:37
|
[ http://216.121.112.228/browse/NH-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21216#action_21216 ] Radu Ban commented on NH-2645: ------------------------------ same as NH-2486 and NH-2380 > Distinct is not supported by SelectClauseVisitor > ------------------------------------------------ > > Key: NH-2645 > URL: http://216.121.112.228/browse/NH-2645 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.GA > Reporter: Paul Speranza > Priority: Minor > > I have the following LINQ query that is mapped to a view > QueryResult<List<PersonDemographic>> members = new QueryResult<List<PersonDemographic>>(); > var query = (from ms in this.Session.Query<MemberSummary>() > where ms.NameSearch.StartsWith(firstName.ToUpper()) > && ms.NameSearch2.StartsWith(lastName.ToUpper()) > select new PersonDemographic > { > FirstName = ms.FirstName.ToProperCase(), > LastName = ms.LastName.ToProperCase(), > PersonId = ms.Id, > Address = new Address > { > Line1 = ms.AddressLine1.ToProperCase(), > Line2 = ms.AddressLine2.ToProperCase(), > City = ms.City.ToProperCase(), > State = ms.State, > Zipcode = ms.Zipcode, > }, > PhoneNumber = new PhoneNumber > { > Number = string.IsNullOrWhiteSpace(ms.PhoneNumber) ? null : Regex.Replace(ms.PhoneNumber, @"(\d{3})(\d{3})(\d{4})", "$1-$2-$3") > } > }); > if (this.Session.Transaction.IsActive) > { > members.Data = query.Distinct().Take(15).ToList(); > } > else > { > using (var transaction = this.Session.BeginTransaction()) > { > members.Data = query.Distinct().Take(15).ToList(); > transaction.Commit(); > } > } > > The code is running under the transaction section. If I use it without a Distinct I have no problem. Adding the Distinct gives me an exception > {"Expression type 10005 is not supported by this SelectClauseVisitor."} > I can't find anything definitive. Can anyone help? > Thanks, Paul -- 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: Radu B. (JIRA) <nh...@gm...> - 2011-05-29 00:02:38
|
[ http://216.121.112.228/browse/NH-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21215#action_21215 ] Radu Ban commented on NH-2486: ------------------------------ same as NH-2645 and NH-2380 > Distinct() extension method problem with Object Initialisers > ------------------------------------------------------------ > > Key: NH-2486 > URL: http://216.121.112.228/browse/NH-2486 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.GA > Reporter: David Siew > Priority: Minor > > This code will fail: > var data = (from v in this.GetSession().Query<WorkCellLoadGraphData>() > where v.WorkCellId == "13" > select > new WorkCellLoadGraphData > { > RowId = v.RowId, > WorkCellId = v.WorkCellId, > WorkCellName = v.WorkCellName, > WorkCellGroupId = v.WorkCellGroupId, > WorkCellGroupName = v.WorkCellGroupName > }); > return data.Distinct(); > However, running this code: > var data = (from v in this.GetSession().Query<WorkCellLoadGraphData>() > where v.WorkCellId == "13" > select v > ); > return data.Distinct(); > will "work". > The error I get is: "Expression type 10005 is not supported by this SelectClauseVisitor." -- 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: parag v. (JIRA) <nh...@gm...> - 2011-05-28 10:47:37
|
[ http://216.121.112.228/browse/NH-2745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21214#action_21214 ] parag vyas commented on NH-2745: -------------------------------- But I have the same site of N-Hibernate1 which is hosted on same server and it is working fine So Can you tell me is any thing related to XML Serialize change with the version of N-Hibernate? This is the configuration which i use ------------------------------------- System.IO.MemoryStream stream = new System.IO.MemoryStream(); NHibernate.Mapping.Attributes.HbmSerializer.Default.Validate = true; NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration(); cfg.SetProperty("connection.connection_string", DomainUtility.GetConnectionString()); cfg.SetProperty("connection.provider", "NHibernate.Connection.DriverConnectionProvider"); cfg.SetProperty("connection.driver_class", "NHibernate.Driver.SqlClientDriver"); cfg.SetProperty("dialect", "NHibernate.Dialect.MsSql2005Dialect"); cfg.SetProperty("connection.isolation", "ReadCommitted"); cfg.SetProperty("command_timeout", "60000"); cfg.SetProperty("adonet.batch_size", "500"); cfg.SetProperty("proxyfactory.factory_class", "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle"); cfg.SetProperty("use_proxy_validator", "false"); NHibernate.Mapping.Attributes.HbmSerializer.Default.Serialize( stream, Assembly.GetExecutingAssembly()); stream.Position = 0; cfg.AddInputStream(stream); > Nhibernate 3.0 Upgrade Mapping Issue > ------------------------------------ > > Key: NH-2745 > URL: http://216.121.112.228/browse/NH-2745 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.GA > Reporter: parag vyas > Priority: Critical > Attachments: ServerConfiguration.png > > > Hello > This is my server configuration -- > Find attached Document > This exception I get when I upgrade to NHibernate3 and host my code on my server. > Exception information: Exception type: MappingException Exception message: Could not compile the mapping document: (unknown) > Stack trace: at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) > at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > Please reply if you have any idea............... > Thanks > Parag Vyas -- 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: Omri F. (JIRA) <nh...@gm...> - 2011-05-28 07:27:35
|
[ http://216.121.112.228/browse/NH-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Omri Fima updated NH-2401: -------------------------- Attachment: nh2401MappedAs.patch uploaded a patch for NH2401 using MappedAs extension method. it passed the NHibernate Tests so it shouldn't break anything, as well it makes the LINQ tests of Hibernate.Spatial pass, which heavily rely on the feature. > Method for specifying IType of LINQ parameter > --------------------------------------------- > > Key: NH-2401 > URL: http://216.121.112.228/browse/NH-2401 > Project: NHibernate > Issue Type: Improvement > Components: Linq Provider > Affects Versions: 3.0.0.Beta1 > Reporter: Patrick Earl > Attachments: nh2401MappedAs.patch, nh_2401.patch > > -- 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-28 06:41:33
|
[ http://216.121.112.228/browse/NH-2616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl resolved NH-2616. ------------------------------ Resolution: Fixed Fix Version/s: 3.2.0CR1 > Support Trim() function in Linq > ------------------------------- > > Key: NH-2616 > URL: http://216.121.112.228/browse/NH-2616 > Project: NHibernate > Issue Type: New Feature > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Patrick Earl > Assignee: Patrick Earl > Fix For: 3.2.0CR1 > > -- 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: parag v. (JIRA) <nh...@gm...> - 2011-05-28 06:39:36
|
[ http://216.121.112.228/browse/NH-2745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21212#action_21212 ] parag vyas commented on NH-2745: -------------------------------- I have already post this issue there > Nhibernate 3.0 Upgrade Mapping Issue > ------------------------------------ > > Key: NH-2745 > URL: http://216.121.112.228/browse/NH-2745 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.GA > Reporter: parag vyas > Priority: Critical > Attachments: ServerConfiguration.png > > > Hello > This is my server configuration -- > Find attached Document > This exception I get when I upgrade to NHibernate3 and host my code on my server. > Exception information: Exception type: MappingException Exception message: Could not compile the mapping document: (unknown) > Stack trace: at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) > at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > Please reply if you have any idea............... > Thanks > Parag Vyas -- 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-28 02:12:35
|
Support % operator ------------------ Key: NH-2748 URL: http://216.121.112.228/browse/NH-2748 Project: NHibernate Issue Type: Improvement Components: Linq Provider 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: Julian M. (JIRA) <nh...@gm...> - 2011-05-27 15:59:59
|
[ http://216.121.112.228/browse/NH-2745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Maughan closed NH-2745. ------------------------------ Resolution: Not an Issue Until you have more concrete proof of a bug in NH (and can provide specific details), please direct your question to the NHibernate Users Group (http://groups.google.com/group/nhusers) - where you are more likely to get help. > Nhibernate 3.0 Upgrade Mapping Issue > ------------------------------------ > > Key: NH-2745 > URL: http://216.121.112.228/browse/NH-2745 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.GA > Reporter: parag vyas > Priority: Critical > Attachments: ServerConfiguration.png > > > Hello > This is my server configuration -- > Find attached Document > This exception I get when I upgrade to NHibernate3 and host my code on my server. > Exception information: Exception type: MappingException Exception message: Could not compile the mapping document: (unknown) > Stack trace: at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) > at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > Please reply if you have any idea............... > Thanks > Parag Vyas -- 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: Julian M. (JIRA) <nh...@gm...> - 2011-05-27 15:17:59
|
[ http://216.121.112.228/browse/NH-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Maughan updated NH-2747: ------------------------------- Priority: Minor (was: Blocker) Affects Version/s: 3.1.0 > HQL query says collection not mapped in many-to-many relation > ------------------------------------------------------------- > > Key: NH-2747 > URL: http://216.121.112.228/browse/NH-2747 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.1.0, 3.2.0Beta1 > Reporter: Hans Tschan > Priority: Minor > Attachments: NH2747.zip > > > HQL query fails to navigate the associated collection. I have a Student <> Teacher many-to-many relationship and when I ask "select Student from Teacher t, t.Students where t.Name = :teacherName". This kind of query worked in NHibernate 2.0.1 GA. > I tried it with NHibernate 3.1 an 3.2Beta1, which both gave the errror t.Students not mapped. > NHibernate.Hql.Ast.ANTLR.QuerySyntaxException was unhandled > Message=t.Students is not mapped [select Student from Teacher t, t.Students where t.Name = :teacherName] > Source=NHibernate > QueryString=select Student from Teacher t, t.Students where t.Name = :teacherName > StackTrace: > at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.RequireClassPersister(String name) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\SessionFactoryHelperExtensions.cs:line 230 > at NHibernate.Hql.Ast.ANTLR.Tree.FromElementFactory.AddFromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromElementFactory.cs:line 82 > at NHibernate.Hql.Ast.ANTLR.Tree.FromClause.AddFromElement(String path, IASTNode alias) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromClause.cs:line 166 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.CreateFromElement(String path, IASTNode pathNode, IASTNode alias, IASTNode propertyFetch) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\HqlSqlWalker.cs:line 715 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3894 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElementList() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3707 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromClause() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3624 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1658 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1514 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 540 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 439 > at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 590 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 449 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 401 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\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 d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 43 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 21 > at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 24 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 16 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 10 > at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\QueryPlanCache.cs:line 61 > at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 304 > at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 283 > at NHibernate.Test.NHSpecificTest.NHBugHqlManyToMany.SampleTest.ShouldBeAbleToGetFromTeacherToStudents() in C:\Temp\NHibernate\NHBugHqlManyToMany\NHibernate.Test\NHSpecificTest\NHBugHqlManyToMany\SampleTest.cs:line 74 > at ConsoleApplication2.Program.Main(String[] args) in C:\Temp\NHibernate\NHBugHqlManyToMany\ConsoleApplication2\Program.cs:line 14 > at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > InnerException: -- 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: Hans T. (JIRA) <nh...@gm...> - 2011-05-27 09:58:54
|
[ http://216.121.112.228/browse/NH-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hans Tschan updated NH-2747: ---------------------------- Attachment: NH2747.zip Test VS2010 solution to reproduce bug NH-2747 > HQL query says collection not mapped in many-to-many relation > ------------------------------------------------------------- > > Key: NH-2747 > URL: http://216.121.112.228/browse/NH-2747 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Beta1 > Reporter: Hans Tschan > Priority: Blocker > Attachments: NH2747.zip > > > HQL query fails to navigate the associated collection. I have a Student <> Teacher many-to-many relationship and when I ask "select Student from Teacher t, t.Students where t.Name = :teacherName". This kind of query worked in NHibernate 2.0.1 GA. > I tried it with NHibernate 3.1 an 3.2Beta1, which both gave the errror t.Students not mapped. > NHibernate.Hql.Ast.ANTLR.QuerySyntaxException was unhandled > Message=t.Students is not mapped [select Student from Teacher t, t.Students where t.Name = :teacherName] > Source=NHibernate > QueryString=select Student from Teacher t, t.Students where t.Name = :teacherName > StackTrace: > at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.RequireClassPersister(String name) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\SessionFactoryHelperExtensions.cs:line 230 > at NHibernate.Hql.Ast.ANTLR.Tree.FromElementFactory.AddFromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromElementFactory.cs:line 82 > at NHibernate.Hql.Ast.ANTLR.Tree.FromClause.AddFromElement(String path, IASTNode alias) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromClause.cs:line 166 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.CreateFromElement(String path, IASTNode pathNode, IASTNode alias, IASTNode propertyFetch) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\HqlSqlWalker.cs:line 715 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3894 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElementList() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3707 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromClause() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3624 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1658 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1514 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 540 > at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 439 > at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 590 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 449 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 401 > at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\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 d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 43 > at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 21 > at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 24 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 16 > at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 10 > at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\QueryPlanCache.cs:line 61 > at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 304 > at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 283 > at NHibernate.Test.NHSpecificTest.NHBugHqlManyToMany.SampleTest.ShouldBeAbleToGetFromTeacherToStudents() in C:\Temp\NHibernate\NHBugHqlManyToMany\NHibernate.Test\NHSpecificTest\NHBugHqlManyToMany\SampleTest.cs:line 74 > at ConsoleApplication2.Program.Main(String[] args) in C:\Temp\NHibernate\NHBugHqlManyToMany\ConsoleApplication2\Program.cs:line 14 > at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > InnerException: -- 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: Hans T. (JIRA) <nh...@gm...> - 2011-05-27 09:53:54
|
HQL query says collection not mapped in many-to-many relation ------------------------------------------------------------- Key: NH-2747 URL: http://216.121.112.228/browse/NH-2747 Project: NHibernate Issue Type: Bug Components: Core Affects Versions: 3.2.0Beta1 Reporter: Hans Tschan Priority: Blocker HQL query fails to navigate the associated collection. I have a Student <> Teacher many-to-many relationship and when I ask "select Student from Teacher t, t.Students where t.Name = :teacherName". This kind of query worked in NHibernate 2.0.1 GA. I tried it with NHibernate 3.1 an 3.2Beta1, which both gave the errror t.Students not mapped. NHibernate.Hql.Ast.ANTLR.QuerySyntaxException was unhandled Message=t.Students is not mapped [select Student from Teacher t, t.Students where t.Name = :teacherName] Source=NHibernate QueryString=select Student from Teacher t, t.Students where t.Name = :teacherName StackTrace: at NHibernate.Hql.Ast.ANTLR.SessionFactoryHelperExtensions.RequireClassPersister(String name) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\SessionFactoryHelperExtensions.cs:line 230 at NHibernate.Hql.Ast.ANTLR.Tree.FromElementFactory.AddFromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromElementFactory.cs:line 82 at NHibernate.Hql.Ast.ANTLR.Tree.FromClause.AddFromElement(String path, IASTNode alias) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Tree\FromClause.cs:line 166 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.CreateFromElement(String path, IASTNode pathNode, IASTNode alias, IASTNode propertyFetch) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\HqlSqlWalker.cs:line 715 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3894 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromElementList() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3707 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.fromClause() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 3624 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.unionedQuery() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1658 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.query() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 1514 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.selectStatement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 540 at NHibernate.Hql.Ast.ANTLR.HqlSqlWalker.statement() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs:line 439 at NHibernate.Hql.Ast.ANTLR.HqlSqlTranslator.Translate() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 590 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Analyze(String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 449 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.DoCompile(IDictionary`2 replacements, Boolean shallow, String collectionRole) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 401 at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.Compile(IDictionary`2 replacements, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\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 d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 43 at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryString, String collectionRole, Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:line 21 at NHibernate.Engine.Query.HQLStringQueryPlan.CreateTranslators(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 24 at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, String collectionRole, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 16 at NHibernate.Engine.Query.HQLStringQueryPlan..ctor(String hql, Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\HQLStringQueryPlan.cs:line 10 at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(String queryString, Boolean shallow, IDictionary`2 enabledFilters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Engine\Query\QueryPlanCache.cs:line 61 at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(String query, Boolean shallow) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 304 at NHibernate.Impl.AbstractSessionImpl.CreateQuery(String queryString) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\AbstractSessionImpl.cs:line 283 at NHibernate.Test.NHSpecificTest.NHBugHqlManyToMany.SampleTest.ShouldBeAbleToGetFromTeacherToStudents() in C:\Temp\NHibernate\NHBugHqlManyToMany\NHibernate.Test\NHSpecificTest\NHBugHqlManyToMany\SampleTest.cs:line 74 at ConsoleApplication2.Program.Main(String[] args) in C:\Temp\NHibernate\NHBugHqlManyToMany\ConsoleApplication2\Program.cs:line 14 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: -- 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: Pete A. (JIRA) <nh...@gm...> - 2011-05-27 09:46:56
|
Invalid SQL generated for MSSQL when using Filter and paging subquery together [regression from 2.1] ---------------------------------------------------------------------------------------------------- Key: NH-2746 URL: http://216.121.112.228/browse/NH-2746 Project: NHibernate Issue Type: Patch Components: Core Affects Versions: 3.1.0 Reporter: Pete Appleton Priority: Major Attachments: NHTest.zip, QueryParams.patch On MS SQL Server 2005/2008, creating an ICriteria for a parent table with a join onto a child table and a paging subquery fails with a SQL exception if a filter is applied to the collection in the mapping and then enabled in code. If the filter is not enabled then the query functions as expected. There's a very small test project provided to illustrate the problem; unfortunately, I've been unable to create a unit test using the template as I'm getting an error ["Could not find the dialect in the configuration"]; there is also a patch which appears to correct the problem, but it has not been subjected to the unit test suite. NHibernate exception details: NHibernate.Exceptions.GenericADOException: could not execute query [ SELECT this_.Id as Id0_1_, this_.Name as Name0_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id1_0_, children2_.Name as Name1_0_, children2_.T1Id as T3_1_0_ FROM dbo.T1 this_ left outer join dbo.T2 children2_ on this_.Id=children2_.T1Id and @p0=children2_.Name WHERE this_.Id in (SELECT TOP (@p1) y0_ FROM (SELECT this_0_.Id as y0_, ROW_NUMBER() OVER(ORDER BY this_0_.Id) as __hibernate_sort_row FROM dbo.T1 this_0_) as query WHERE query.__hibernate_sort_row > @p2 ORDER BY query.__hibernate_sort_row) ] [SQL: SELECT this_.Id as Id0_1_, this_.Name as Name0_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id1_0_, children2_.Name as Name1_0_, children2_.T1Id as T3_1_0_ FROM dbo.T1 this_ left outer join dbo.T2 children2_ on this_.Id=children2_.T1Id and @p0=children2_.Name WHERE this_.Id in (SELECT TOP (@p1) y0_ FROM (SELECT this_0_.Id as y0_, ROW_NUMBER() OVER(ORDER BY this_0_.Id) as __hibernate_sort_row FROM dbo.T1 this_0_) as query WHERE query.__hibernate_sort_row > @p2 ORDER BY query.__hibernate_sort_row)] ---> System.Data.SqlClient.SqlException: Must declare the scalar variable "@p1". Incorrect syntax near the keyword 'as'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) ... at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\AdoNet\AbstractBatcher.cs:line 247 at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 1349 at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 413 at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 243 at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 1694 --- End of inner exception stack trace --- at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 1703 at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 1601 at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:line 1595 at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Criteria\CriteriaLoader.cs:line 74 at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 1919 at NHibernate.Impl.CriteriaImpl.List(IList results) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\CriteriaImpl.cs:line 265 at NHibernate.Impl.CriteriaImpl.List[T]() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\CriteriaImpl.cs:line 276 at NHTest.Program.TestQuery() in D:\SVN\Podium\Source\NHTest\Program.cs:line 69 at NHTest.Program.Main(String[] args) in D:\SVN\Podium\Source\NHTest\Program.cs:line 26 This is being run with .NET v4, though I don't believe that the framework version has an bearing. -- 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: parag v. (JIRA) <nh...@gm...> - 2011-05-27 08:02:54
|
Nhibernate 3.0 Upgrade Mapping Issue ------------------------------------ Key: NH-2745 URL: http://216.121.112.228/browse/NH-2745 Project: NHibernate Issue Type: Bug Components: Core Affects Versions: 3.0.0.GA Reporter: parag vyas Priority: Critical Attachments: ServerConfiguration.png Hello This is my server configuration -- > Find attached Document This exception I get when I upgrade to NHibernate3 and host my code on my server. Exception information: Exception type: MappingException Exception message: Could not compile the mapping document: (unknown) Stack trace: at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlReader hbmReader, String name) at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) Please reply if you have any idea............... Thanks Parag Vyas -- 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: Evgeniy (JIRA) <nh...@gm...> - 2011-05-27 07:57:54
|
NewArrayInit Is not Implemented ------------------------------- Key: NH-2744 URL: http://216.121.112.228/browse/NH-2744 Project: NHibernate Issue Type: Bug Components: Linq Provider Affects Versions: 3.2.0Beta1, 3.2.0Alpha3, 3.2.0Alpha2, 3.2.0Alpha1, 3.1.0, 3.0.0.GA Reporter: Evgeniy Priority: Major .NET 4.0 MS SQL 2005 NHIbernate 3.0.0 GA LINQ NewArrayInit Is not Implemented in NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitExpression(Expression expression) I think it's needed feature cause we need a plain projection to object[] from Query<T>: session.Query<Foo>.Select(obj => new object[] {obj.A, obj.B, obj.C}).ToList(); -- 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 |