You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(110) |
Nov
(296) |
Dec
(107) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(212) |
Feb
(263) |
Mar
(161) |
Apr
(183) |
May
(183) |
Jun
(75) |
Jul
(106) |
Aug
(88) |
Sep
(227) |
Oct
(143) |
Nov
(154) |
Dec
(53) |
2008 |
Jan
(77) |
Feb
|
Mar
|
Apr
(6) |
May
(103) |
Jun
(296) |
Jul
(54) |
Aug
|
Sep
(379) |
Oct
(283) |
Nov
(224) |
Dec
(214) |
2009 |
Jan
(129) |
Feb
(257) |
Mar
(136) |
Apr
(12) |
May
(329) |
Jun
(434) |
Jul
(375) |
Aug
(171) |
Sep
|
Oct
|
Nov
|
Dec
(54) |
2010 |
Jan
(198) |
Feb
(76) |
Mar
(3) |
Apr
(1) |
May
|
Jun
(62) |
Jul
(210) |
Aug
(447) |
Sep
(330) |
Oct
(257) |
Nov
(133) |
Dec
(453) |
2011 |
Jan
(240) |
Feb
(128) |
Mar
(442) |
Apr
(320) |
May
(428) |
Jun
(141) |
Jul
(13) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:38
|
[ http://jira.nhibernate.org/browse/NH-766?page=all ] Sergey Koshcheyev updated NH-766: --------------------------------- Fix Version: LATER > Avoid joins on <composite-key><key-many-to-one> queries > ------------------------------------------------------- > > Key: NH-766 > URL: http://jira.nhibernate.org/browse/NH-766 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.0.2 > Reporter: Kirk Wylie > Priority: Trivial > Fix For: LATER > > This is being promoted from something I posted on the NHibernate forums. > Using NHibernate 1.0.2.0 against Oracle 9. > I'm working with an existing schema which isn't using surrogate keys, and I have a composite key of the form: > <class name="CalculatedRating" ...> > <composite-id> > <key-property name="EffectiveDate" column="EFFECTIVE_DATE"/> > <key-many-to-one name="FdeOrganization" column="ORGANIZATION_ID" .../> > </composite-id> > ... > </class> > Using this query: > from CalculatedRating cr > inner join fetch cr.FdeOrganization fdeOrg > left join fetch fdeOrg.Attributes as attribute > inner join fetch attribute.AttributeType > where cr.EffectiveDate = > (select max(cr2.EffectiveDate) > from CalculatedRating cr2 > where cr2.EffectiveDate >= :EffectiveDate) > order by cr.FdeOrganization.OrgId > NHibernate is quite correctly generating the SQL necessary to completely manifest the CalculatedRating element in a single query. However, after executing that query, it then still proceeds to do the N+1 select on FdeOrganization. > As in this application I'm actually using quite a few cases where I'm successfully using the inner join fetch technique against FdeOrganization, I can only assume that this is a problem related to key-many-to-one rather than many-to-one. > After further investigation, I can establish that Hibernate 3.1.3 exposes the exact same functionality. I'm filing this first against NHibernate since that's where I first discovered it, however, since it affects Hibernate as well it might be better filed against that, and I can do so if needed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:36
|
[ http://jira.nhibernate.org/browse/NH-611?page=all ] Sergey Koshcheyev updated NH-611: --------------------------------- Fix Version: LATER Version: 1.2.0.Beta2 > Delete without retrieving Object (Delete(Type type, Object key) ) > ----------------------------------------------------------------- > > Key: NH-611 > URL: http://jira.nhibernate.org/browse/NH-611 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Michael Fletcher > Priority: Minor > Fix For: LATER > > I have a bunch of legacy code where I delete an object based on its id. In order for me to delete the object I need to retrieve it or create a query. > Notice n = session.Get(typeof(Notice), noticeId); > session.Delete(n); > or > session.Delete("from Notice n where n.Id=" + noticeId); > It seems more natual to delete an object using the type and identifier of the object similar to ISession.Get(). > Add a method to ISession that deletes an object based on its type and identifier without reading the object. > ISession.Delete(Type clazz, Object id); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:34
|
[ http://jira.nhibernate.org/browse/NH-280?page=all ] Sergey Koshcheyev updated NH-280: --------------------------------- Fix Version: LATER Version: 1.2.0.Beta2 Assign To: (was: Mike Doerfler) > Using constants in select clause of HQL > --------------------------------------- > > Key: NH-280 > URL: http://jira.nhibernate.org/browse/NH-280 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2, beta-0.8.3 > Environment: .net 1.1, nhibernate 0.8.2.0, sql server 2000 sp 3 > Reporter: Dragos Nuta > Priority: Minor > Fix For: LATER > > It would be nice and easier to have a way to specify constants in the select clause in hql. > select someobject.property, 1, 'constant string' > from SomeObject someobject > If you need a case where this could prove useful think about union (that as far as I know is not supported either) in a case like this: > ArrayList result = new ArrayList(); > result.AddRange( > Session.CreateQuery( "select o1.Name, 'O1' from Object1 o1" ).List() > ); > result.AddRange( > Session.CreateQuery( "select o2.Name, 'O2' from Object2 o2" ).List() > ); > I think it should not be hard to support integer, decimal or string constants, but you may find some difficulties in expressing datetime constants. On possibility whould be to support a new keyword, something like newDate( year, month, day, hour, minute, second), or support a syntax like in Access (I guess) of {year-month-date} or {year-month-date hour:minute:second}. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:32
|
[ http://jira.nhibernate.org/browse/NH-780?page=all ] Sergey Koshcheyev updated NH-780: --------------------------------- Fix Version: 1.2.0.CR1 > Obsolete code in the tips 'n tricks > ----------------------------------- > > Key: NH-780 > URL: http://jira.nhibernate.org/browse/NH-780 > Project: NHibernate > Type: Improvement > Components: Documentation > Versions: 1.2.0.Beta1 > Reporter: Guy Mahieu > Priority: Trivial > Fix For: 1.2.0.CR1 > > From the docs: > <blockquote/> > 11.13. Tips & Tricks > You can count the number of query results without actually returning them: > <code> > IEnumerator countEn = session.Enumerable("select count(*) from ....").GetEnumerator(); > countEn.MoveNext(); > int count = (int) countEn.Current; > </code> > </blockquote> > Other than looking like a workaround, this uses obsolete code (session.Enumerable); it might be better to change it to: > <code> > int count = (int) session.CreateQuery("select count(*) from ...").UniqueResult(); > </code> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:32
|
[ http://jira.nhibernate.org/browse/NH-666?page=all ] Sergey Koshcheyev updated NH-666: --------------------------------- Fix Version: 1.2.0.CR1 > IQuery.SetParameterList should support generics > ----------------------------------------------- > > Key: NH-666 > URL: http://jira.nhibernate.org/browse/NH-666 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Alpha1 > Reporter: Jerry Haltom > Priority: Trivial > Fix For: 1.2.0.CR1 > > IQuery.SetParameterList should support generic collections. I might also name it SetParameters(IEnumerable<>), as it doesn't actually need to set a List, just an enumerable source of values. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:30
|
[ http://jira.nhibernate.org/browse/NH-648?page=3Dall ] Sergey Koshcheyev reassigned NH-648: ------------------------------------ Assign To: Pierre Henri Kuat=C3=A9 > Discriminator attribute allowed for class (not only property, field or in= dexer) > -------------------------------------------------------------------------= ------ > > Key: NH-648 > URL: http://jira.nhibernate.org/browse/NH-648 > Project: NHibernate > Type: Improvement > Components: Contrib > Versions: 1.2.0.Alpha1 > Reporter: Christoph Wienands > Assignee: Pierre Henri Kuat=C3=A9 > Priority: Trivial > Fix For: LATER > > Hello Kpix, > I have another improvement request for you. I defined a base class Domain= Object, which already defines an ID (note that PascalCaseMUnderScore is a c= ustom FieldAccessor so I can use strong typing instead of strings): > =09public class DomainObjectInt : DomainObject<int> > =09{ > =09=09[Id(0, Name =3D "ID", Column =3D "ID", TypeType =3D typeof(Int32), = UnsavedValue =3D "0", > =09=09=09AccessType =3D typeof(PascalCaseMUnderScore))] > =09=09[Generator(1, Class =3D "identity")] > =09=09public override int ID > =09=09{ > =09=09=09get { return base.ID; } > =09=09} > =09} > Now when I want to define inheritance hierarchies I run into trouble: > =09[Class(0, NameType =3D typeof(Operation), Table =3D "[Operation]", Laz= y =3D false)] > =09[Discriminator(1, Column =3D "Discriminator")] > =09public abstract class Operation : DomainObjectInt, IOperation > =09{ > =09} > I'd like to place the discriminator right at the top with the class defin= ition. However, it's only valid on property, indexer or field. The workarou= nd is to place it e.g. on top of the first member variable but that's misle= ading when someone looks at the code. > Is there a reason why I couldn't place that attribute on top of the class= ? > Thanks, Christoph --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:26
|
[ http://jira.nhibernate.org/browse/NH-648?page=3Dall ] Sergey Koshcheyev updated NH-648: --------------------------------- Fix Version: LATER > Discriminator attribute allowed for class (not only property, field or in= dexer) > -------------------------------------------------------------------------= ------ > > Key: NH-648 > URL: http://jira.nhibernate.org/browse/NH-648 > Project: NHibernate > Type: Improvement > Components: Contrib > Versions: 1.2.0.Alpha1 > Reporter: Christoph Wienands > Assignee: Pierre Henri Kuat=C3=A9 > Priority: Trivial > Fix For: LATER > > Hello Kpix, > I have another improvement request for you. I defined a base class Domain= Object, which already defines an ID (note that PascalCaseMUnderScore is a c= ustom FieldAccessor so I can use strong typing instead of strings): > =09public class DomainObjectInt : DomainObject<int> > =09{ > =09=09[Id(0, Name =3D "ID", Column =3D "ID", TypeType =3D typeof(Int32), = UnsavedValue =3D "0", > =09=09=09AccessType =3D typeof(PascalCaseMUnderScore))] > =09=09[Generator(1, Class =3D "identity")] > =09=09public override int ID > =09=09{ > =09=09=09get { return base.ID; } > =09=09} > =09} > Now when I want to define inheritance hierarchies I run into trouble: > =09[Class(0, NameType =3D typeof(Operation), Table =3D "[Operation]", Laz= y =3D false)] > =09[Discriminator(1, Column =3D "Discriminator")] > =09public abstract class Operation : DomainObjectInt, IOperation > =09{ > =09} > I'd like to place the discriminator right at the top with the class defin= ition. However, it's only valid on property, indexer or field. The workarou= nd is to place it e.g. on top of the first member variable but that's misle= ading when someone looks at the code. > Is there a reason why I couldn't place that attribute on top of the class= ? > Thanks, Christoph --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:26
|
[ http://jira.nhibernate.org/browse/NH-645?page=all ] Sergey Koshcheyev updated NH-645: --------------------------------- Fix Version: LATER > Support for scalar functions which don't return a value in where clause > ----------------------------------------------------------------------- > > Key: NH-645 > URL: http://jira.nhibernate.org/browse/NH-645 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.0.2 > Reporter: Jeff Hagen > Priority: Trivial > Fix For: LATER > > The where parser fails when parsing a scalar function such as Sql Server's contains(column, "value"). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:24
|
[ http://jira.nhibernate.org/browse/NH-804?page=comments#action_14350 ] Christian Bauer commented on NH-804: ------------------------------------ This is not even implemented in Hibernate and unlikely to happen in the 3.2 series. > Implement the SUBSELECT FETCH and BATCH FETCH > --------------------------------------------- > > Key: NH-804 > URL: http://jira.nhibernate.org/browse/NH-804 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > Priority: Trivial > > like in hibernate 3.x > sess.CreateQuery("from Book b SUBSELECT FETCH b.publisher") > sess.CreateQuery("from Book b BATCH FETCH SIZE=5 b.publisher") > the strange thing is, that you can configure it in the mapping xml file, > but you cannot use it in the CreateQuery -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:24
|
[ http://jira.nhibernate.org/browse/NH-620?page=all ] Sergey Koshcheyev closed NH-620: -------------------------------- Resolution: Incomplete > Allow metadata to define transaction type > ----------------------------------------- > > Key: NH-620 > URL: http://jira.nhibernate.org/browse/NH-620 > Project: NHibernate > Type: Improvement > Components: Toolset > Reporter: Pedro Teixeira > Priority: Trivial > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:22
|
[ http://jira.nhibernate.org/browse/NH-633?page=all ] Sergey Koshcheyev updated NH-633: --------------------------------- Fix Version: LATER > Add support for generic collections to hbm2net > ---------------------------------------------- > > Key: NH-633 > URL: http://jira.nhibernate.org/browse/NH-633 > Project: NHibernate > Type: Improvement > Components: Toolset > Versions: 1.2.0.Alpha1 > Reporter: Sergey Koshcheyev > Priority: Trivial > Fix For: LATER > > Postponed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:20
|
[ http://jira.nhibernate.org/browse/NH-536?page=all ] Sergey Koshcheyev closed NH-536: -------------------------------- Resolution: Fixed There is a generic ISet in 1.2.0. > Add generic version of ISet > --------------------------- > > Key: NH-536 > URL: http://jira.nhibernate.org/browse/NH-536 > Project: NHibernate > Type: Task > Components: Core > Versions: 1.0 > Reporter: Mike Doerfler > Priority: Trivial > Attachments: GenericSets.zip, Iesi.Collections.zip, Iesi[1].Collections.zip > > email received with implementation of ISet<T> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:20
|
Type of count(*) should be Int64 -------------------------------- Key: NH-808 URL: http://jira.nhibernate.org/browse/NH-808 Project: NHibernate Type: Improvement Components: Core Versions: 1.2.0.Beta2 Reporter: Sergey Koshcheyev Priority: Trivial Fix For: 1.2.0.CR1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:20
|
[ http://jira.nhibernate.org/browse/NH-804?page=comments#action_14354 ] Christian Bauer commented on NH-804: ------------------------------------ So the book is wrong, simple. I have more than 10 Hibernate books on my shelf that have similar problems. > Implement the SUBSELECT FETCH and BATCH FETCH > --------------------------------------------- > > Key: NH-804 > URL: http://jira.nhibernate.org/browse/NH-804 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > > like in hibernate 3.x > sess.CreateQuery("from Book b SUBSELECT FETCH b.publisher") > sess.CreateQuery("from Book b BATCH FETCH SIZE=5 b.publisher") > the strange thing is, that you can configure it in the mapping xml file, > but you cannot use it in the CreateQuery -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
NHibernate.Mapping.Attributes - Change AttributeIdentifierAttribute's place= holder to {{XXX}} ---------------------------------------------------------------------------= ------------------ Key: NH-806 URL: http://jira.nhibernate.org/browse/NH-806 Project: NHibernate Type: Improvement Components: Contrib =20 Versions: 1.2.0.Beta1 =20 Reporter: Pierre Henri Kuat=C3=A9 Assigned to: Pierre Henri Kuat=C3=A9=20 Priority: Trivial Fix For: 1.2.0.Beta2 Use {{XXX}} because {XXX} is used to define GUIDs. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
[ http://jira.nhibernate.org/browse/NH-805?page=comments#action_14352 ] Franz Meier commented on NH-805: -------------------------------- I hope to see this feature soon, because i often want to fetch objects different according to my use (business) cases. The fetching strategy that is configured in the xml file seems to be ignored from nhibernate (especially when using CreateQuery). It also looks like SetFetchMode in IQuery is ignored. I pretty like nhibernate, but in a lot of my business cases i have no idea what hibernate is doing in the background and so the performance is poor. > A Function for setting the Fetch strategy on an Object > ------------------------------------------------------ > > Key: NH-805 > URL: http://jira.nhibernate.org/browse/NH-805 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > > and a function to query collection later by specifying a fetching strategy > sample: > class User > { > string username; > Ilist UserGroups; > } > class UserGroup > { > User user; > Group group; > ... > } > class Group > { > string groupname; > IList UserGroups; > } > User user = session.Load<User>(1); > session.SetFetchingStrategy(user, "UserGroups", Strategy.Select) > session.SetFetchingStrategy(user, "UserGroups.group", Strategy.Join) > session.FetchCollection(user, "UserGroups"); // this funktion would the init the collection > // of the specified user object by using my defined fetching strategy > It think all funktion are available in the nhibernate core, somebody should only write > the funktions -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
[ http://jira.nhibernate.org/browse/NH-804?page=comments#action_14353 ] Franz Meier commented on NH-804: -------------------------------- Today i bought a book called "Hibernate und die Java Persistence API" from Robert Hien, Markus Kehle published by "Entwickler.Press" where this features are described. > Implement the SUBSELECT FETCH and BATCH FETCH > --------------------------------------------- > > Key: NH-804 > URL: http://jira.nhibernate.org/browse/NH-804 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > > like in hibernate 3.x > sess.CreateQuery("from Book b SUBSELECT FETCH b.publisher") > sess.CreateQuery("from Book b BATCH FETCH SIZE=5 b.publisher") > the strange thing is, that you can configure it in the mapping xml file, > but you cannot use it in the CreateQuery -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
Criteria Tests -------------- Key: NH-807 URL: http://jira.nhibernate.org/browse/NH-807 Project: NHibernate Type: Patch Components: Tests, Core Versions: 1.2.0.Beta2 Reporter: Fabio Maulo Attachments: CriteriaTestAndSomePatch.patch The patch include: - new directory src\NHibernate.Test\Criteria with the port of hibernate-3.2\test\org\hibernate\test\criteria\CriteriaQueryTest.java - added [Serializable] of some existing class (for same class adjusted identation) - add Expression.IdEq and it's implementation NHibernate/Expression/IdentifierEqExpression.cs - in ICriteria add of overload CreateCriteria(string associationPath, JoinType joinType) - CriteriaImpl for [Serializable], identation and AddOrder of subcriteria - added NHibernate/Property/ChainedPropertyAccessor.cs and changed AliasToBeanResultTransformer to auto-chose access to property or fields -PassThroughResultTransformer for [Serializable] and identation -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
[ http://jira.nhibernate.org/browse/NH-806?page=3Dall ] =20 Pierre Henri Kuat=C3=A9 resolved NH-806: ----------------------------------- Resolution: Fixed > NHibernate.Mapping.Attributes - Change AttributeIdentifierAttribute's pla= ce holder to {{XXX}} > -------------------------------------------------------------------------= -------------------- > > Key: NH-806 > URL: http://jira.nhibernate.org/browse/NH-806 > Project: NHibernate > Type: Improvement > Components: Contrib > Versions: 1.2.0.Beta1 > Reporter: Pierre Henri Kuat=C3=A9 > Assignee: Pierre Henri Kuat=C3=A9 > Priority: Trivial > Fix For: 1.2.0.Beta2 > > Use {{XXX}} because {XXX} is used to define GUIDs. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
[ http://jira.nhibernate.org/browse/NH-806?page=3Dall ] =20 Pierre Henri Kuat=C3=A9 closed NH-806: --------------------------------- > NHibernate.Mapping.Attributes - Change AttributeIdentifierAttribute's pla= ce holder to {{XXX}} > -------------------------------------------------------------------------= -------------------- > > Key: NH-806 > URL: http://jira.nhibernate.org/browse/NH-806 > Project: NHibernate > Type: Improvement > Components: Contrib > Versions: 1.2.0.Beta1 > Reporter: Pierre Henri Kuat=C3=A9 > Assignee: Pierre Henri Kuat=C3=A9 > Priority: Trivial > Fix For: 1.2.0.Beta2 > > Use {{XXX}} because {XXX} is used to define GUIDs. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:17
|
[ http://jira.nhibernate.org/browse/NH-805?page=all ] Christian Bauer updated NH-805: ------------------------------- Priority: Major (was: Trivial) Has been discussed as dynamic fetch plans in Hibernate, definitely not happening in Hibernate 3.2. > A Function for setting the Fetch strategy on an Object > ------------------------------------------------------ > > Key: NH-805 > URL: http://jira.nhibernate.org/browse/NH-805 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > > and a function to query collection later by specifying a fetching strategy > sample: > class User > { > string username; > Ilist UserGroups; > } > class UserGroup > { > User user; > Group group; > ... > } > class Group > { > string groupname; > IList UserGroups; > } > User user = session.Load<User>(1); > session.SetFetchingStrategy(user, "UserGroups", Strategy.Select) > session.SetFetchingStrategy(user, "UserGroups.group", Strategy.Join) > session.FetchCollection(user, "UserGroups"); // this funktion would the init the collection > // of the specified user object by using my defined fetching strategy > It think all funktion are available in the nhibernate core, somebody should only write > the funktions -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-13 18:03:14
|
[ http://jira.nhibernate.org/browse/NH-804?page=all ] Christian Bauer updated NH-804: ------------------------------- Priority: Major (was: Trivial) > Implement the SUBSELECT FETCH and BATCH FETCH > --------------------------------------------- > > Key: NH-804 > URL: http://jira.nhibernate.org/browse/NH-804 > Project: NHibernate > Type: New Feature > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Franz Meier > > like in hibernate 3.x > sess.CreateQuery("from Book b SUBSELECT FETCH b.publisher") > sess.CreateQuery("from Book b BATCH FETCH SIZE=5 b.publisher") > the strange thing is, that you can configure it in the mapping xml file, > but you cannot use it in the CreateQuery -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-07 23:13:50
|
Custom load-collection with Stored Procedure -------------------------------------------- Key: NH-794 URL: http://jira.nhibernate.org/browse/NH-794 Project: NHibernate Type: Bug Components: Core Versions: 1.2.0.Beta1 Reporter: Bill Pierce Priority: Minor Attachments: NHibernateSqlLazyLoad.zip I am using a custom loader to load a collection using a Stored Procedure. The SQL executes just fine, data is returned from the sproc, the objects appear to be hydrated just fine, however the resulting IList is empty when I try to iterate it or get a .Count. No errors are thrown and everything else appears to be working normally. I tried lazy/non lazy, tried using a Set instead of a Bag, but nothing seems to be working. Attached is a small project + sql files needed to recreate the issue. [b]Hibernate version:[/b] 1.2.0.2001 [b]Mapping documents:[/b] <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" assembly="NHibernateSqlLazyLoad" namespace="NHibernateSqlLazyLoad"> <class name="InventoryItem" mutable="false"> <composite-id> <key-property name="SellerId" access="nosetter.camelcase-underscore" /> <key-property name="ItemId" access="nosetter.camelcase-underscore" /> </composite-id> <property name="Qualifier" /> <property name="Name" /> <bag name="Alternates" access="nosetter.camelcase-underscore" generic="true"> <key> <column name="SellerId" /> <column name="ItemId" /> </key> <one-to-many class="InventoryItem" /> <loader query-ref="GetAlternateItems" /> </bag> </class> <sql-query name="GetAlternateItems"> <load-collection alias="alternateItem" role="InventoryItem.Alternates" /> EXEC GetAlternateItems ?, ? </sql-query> </hibernate-mapping> [b]Code between sessionFactory.openSession() and session.close():[/b] using (ISession session = _sessionFactory.OpenSession()) { InventoryItem lookup = new InventoryItem(1031086, 1); InventoryItem item = session.Get<InventoryItem>(lookup); lookup = null; Assert.AreEqual(2, item.Alternates.Count); } [b]Full stack trace of any exception that occurs:[/b] [b]Name and version of the database you are using:[/b] Microsoft SQL Server 2000 SP4 [b]The generated SQL (show_sql=true):[/b] EXEC GetAlternateItems @p0, @p1; @p0 = '1031086', @p1 = '1' [b]Debug level Hibernate log excerpt:[/b] 2006-11-07 16:10:02,023 [5400] INFO NHibernate.Cfg.Environment - NHibernate 1.2.0.2001 (1.2.0.Beta1) 2006-11-07 16:10:02,132 [5400] INFO NHibernate.Cfg.Environment - Bytecode provider name : lcg 2006-11-07 16:10:02,132 [5400] INFO NHibernate.Cfg.Environment - Using reflection optimizer 2006-11-07 16:10:02,147 [5400] INFO NHibernate.Cfg.Configuration - Mapping file: InventoryItem.hbm.xml 2006-11-07 16:10:02,878 [5400] INFO NHibernate.Dialect.Dialect - Using dialect: NHibernate.Dialect.MsSql2000Dialect 2006-11-07 16:10:03,018 [5400] INFO NHibernate.Cfg.HbmBinder - Mapping class: NHibernateSqlLazyLoad.InventoryItem -> InventoryItem 2006-11-07 16:10:03,049 [5400] DEBUG NHibernate.Cfg.HbmBinder - Mapped property: SellerId -> SellerId, type: Int32 2006-11-07 16:10:03,049 [5400] DEBUG NHibernate.Cfg.HbmBinder - Mapped property: ItemId -> ItemId, type: Int32 2006-11-07 16:10:03,096 [5400] DEBUG NHibernate.Cfg.HbmBinder - Mapped property: Qualifier -> Qualifier, type: String 2006-11-07 16:10:03,096 [5400] DEBUG NHibernate.Cfg.HbmBinder - Mapped property: Name -> Name, type: String 2006-11-07 16:10:03,111 [5400] DEBUG NHibernate.Cfg.HbmBinder - Mapped property: Alternates, type: IList`1 2006-11-07 16:10:03,111 [5400] INFO NHibernate.Cfg.Configuration - processing one-to-many association mappings 2006-11-07 16:10:03,127 [5400] DEBUG NHibernate.Cfg.CollectionSecondPass - Second pass for collection: NHibernateSqlLazyLoad.InventoryItem.Alternates 2006-11-07 16:10:03,127 [5400] INFO NHibernate.Cfg.HbmBinder - mapping collection: NHibernateSqlLazyLoad.InventoryItem.Alternates -> InventoryItem 2006-11-07 16:10:03,127 [5400] DEBUG NHibernate.Cfg.CollectionSecondPass - Mapped collection key: SellerId, ItemId, one-to-many: InventoryItem 2006-11-07 16:10:03,158 [5400] DEBUG NHibernate.Cfg.NamedSQLQuerySecondPass - Named SQL query: GetAlternateItems -> EXEC GetAlternateItems ?, ? 2006-11-07 16:10:03,158 [5400] INFO NHibernate.Cfg.Configuration - processing one-to-one association property references 2006-11-07 16:10:03,158 [5400] INFO NHibernate.Cfg.Configuration - processing foreign key constraints 2006-11-07 16:10:03,158 [5400] DEBUG NHibernate.Cfg.Configuration - resolving reference to class: InventoryItem 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Dialect.Dialect - Using dialect: NHibernate.Dialect.MsSql2000Dialect 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Connection.ConnectionProviderFactory - Intitializing connection provider: NHibernate.Connection.DriverConnectionProvider 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Connection.ConnectionProvider - Configuring ConnectionProvider 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Cfg.SettingsFactory - Optimize cache for minimal puts: False 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Cfg.SettingsFactory - echoing all SQL to stdout 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Cfg.SettingsFactory - Query language substitutions: {} 2006-11-07 16:10:03,173 [5400] INFO NHibernate.Cfg.SettingsFactory - cache provider: NHibernate.Cache.HashtableCacheProvider 2006-11-07 16:10:03,189 [5400] INFO NHibernate.Impl.SessionFactoryImpl - building session factory 2006-11-07 16:10:03,189 [5400] DEBUG NHibernate.Impl.SessionFactoryImpl - instantiating session factory with properties: {hibernate.connection.driver_class=NHibernate.Driver.SqlClientDriver, hibernate.dialect=NHibernate.Dialect.MsSql2000Dialect, hibernate.connection.provider=NHibernate.Connection.DriverConnectionProvider, hibernate.use_reflection_optimizer=true, hibernate.show_sql=true, hibernate.connection.connection_string=Server=(local);Database=WCPierce;Trusted_Connection=True;} 2006-11-07 16:10:03,298 [5400] DEBUG NHibernate.Impl.SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory 2006-11-07 16:10:03,313 [5400] DEBUG NHibernate.Impl.SessionFactoryObjectFactory - registered: 8089699df1764b6fb8e1d2890a511db2(unnamed) 2006-11-07 16:10:03,313 [5400] INFO NHibernate.Impl.SessionFactoryObjectFactory - no name configured 2006-11-07 16:10:03,329 [5400] DEBUG NHibernate.SqlCommand.SqlSelectBuilder - The initial capacity was set too low at: 8 for the SelectSqlBuilder that needed a capacity of: 12 for the table InventoryItem inventoryi_ 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.SqlCommand.SqlSelectBuilder - The initial capacity was set too low at: 8 for the SelectSqlBuilder that needed a capacity of: 12 for the table InventoryItem inventoryi0_ 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.Loader.Entity.AbstractEntityLoader - Static select for entity NHibernateSqlLazyLoad.InventoryItem: SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=? and inventoryi0_.ItemId=? 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.SqlCommand.SqlSelectBuilder - The initial capacity was set too low at: 8 for the SelectSqlBuilder that needed a capacity of: 12 for the table InventoryItem inventoryi0_ 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.Loader.Entity.AbstractEntityLoader - Static select for entity NHibernateSqlLazyLoad.InventoryItem: SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=? and inventoryi0_.ItemId=? 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.SqlCommand.SqlSelectBuilder - The initial capacity was set too low at: 8 for the SelectSqlBuilder that needed a capacity of: 12 for the table InventoryItem inventoryi0_ 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.Loader.Entity.AbstractEntityLoader - Static select for entity NHibernateSqlLazyLoad.InventoryItem: SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=? and inventoryi0_.ItemId=? 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.SqlCommand.SqlSelectBuilder - The initial capacity was set too low at: 8 for the SelectSqlBuilder that needed a capacity of: 12 for the table InventoryItem inventoryi0_ 2006-11-07 16:10:03,376 [5400] DEBUG NHibernate.Loader.Entity.AbstractEntityLoader - Static select for entity NHibernateSqlLazyLoad.InventoryItem: SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=? and inventoryi0_.ItemId=? 2006-11-07 16:10:03,391 [5400] DEBUG NHibernate.Impl.SessionFactoryImpl - Instantiated session factory 2006-11-07 16:10:03,407 [5400] DEBUG NHibernate.Impl.SessionImpl - opened session 2006-11-07 16:10:03,422 [5400] DEBUG NHibernate.Impl.SessionImpl - loading [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:03,422 [5400] DEBUG NHibernate.Impl.SessionImpl - attempting to resolve [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:03,422 [5400] DEBUG NHibernate.Impl.SessionImpl - object not resolved in any cache [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:03,422 [5400] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Fetching entity: [NHibernateSqlLazyLoad.InventoryItem#InventoryItem{ItemId=1, SellerId=1031086}] 2006-11-07 16:10:03,422 [5400] DEBUG NHibernate.Loader.Loader - loading entity: [NHibernateSqlLazyLoad.InventoryItem#InventoryItem{ItemId=1, SellerId=1031086}] 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands :1 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=? and inventoryi0_.ItemId=? 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.Type.Int32Type - binding '1031086' to parameter: 0 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.Type.Int32Type - binding '1' to parameter: 1 2006-11-07 16:10:03,516 [5400] INFO NHibernate.Loader.Loader - SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=@p0 and inventoryi0_.ItemId=@p1 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.SQL - SELECT inventoryi0_.SellerId as SellerId0_0_, inventoryi0_.ItemId as ItemId0_0_, inventoryi0_.Qualifier as Qualifier0_0_, inventoryi0_.Name as Name0_0_ FROM InventoryItem inventoryi0_ WHERE inventoryi0_.SellerId=@p0 and inventoryi0_.ItemId=@p1; @p0 = '1031086', @p1 = '1' 2006-11-07 16:10:03,516 [5400] DEBUG NHibernate.Connection.DriverConnectionProvider - Obtaining IDbConnection from Driver 2006-11-07 16:10:04,619 [5400] DEBUG NHibernate.Impl.BatcherImpl - Opened Reader, open Readers :1 2006-11-07 16:10:04,635 [5400] DEBUG NHibernate.Loader.Loader - processing result set 2006-11-07 16:10:04,635 [5400] DEBUG NHibernate.Loader.Loader - result set row: 0 2006-11-07 16:10:04,650 [5400] DEBUG NHibernate.Loader.Loader - result row: NHibernateSqlLazyLoad.InventoryItem/1031086/1 2006-11-07 16:10:04,650 [5400] DEBUG NHibernate.Loader.Loader - Initializing object from DataReader: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,650 [5400] DEBUG NHibernate.Loader.Loader - Hydrating entity: NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1 2006-11-07 16:10:04,697 [5400] DEBUG NHibernate.Type.StringType - returning 'BRG' as column: Qualifier0_0_ 2006-11-07 16:10:04,697 [5400] DEBUG NHibernate.Type.StringType - returning '260097' as column: Name0_0_ 2006-11-07 16:10:04,713 [5400] DEBUG NHibernate.Loader.Loader - done processing result set (1 rows) 2006-11-07 16:10:04,728 [5400] DEBUG NHibernate.Driver.NHybridDataReader - running NHybridDataReader.Dispose() 2006-11-07 16:10:04,728 [5400] DEBUG NHibernate.Impl.BatcherImpl - Closed Reader, open Readers :0 2006-11-07 16:10:04,728 [5400] DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands :0 2006-11-07 16:10:04,728 [5400] DEBUG NHibernate.Loader.Loader - total objects hydrated: 1 2006-11-07 16:10:04,744 [5400] DEBUG NHibernate.Impl.SessionImpl - resolving associations for: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,744 [5400] DEBUG NHibernate.Impl.SessionImpl - creating collection wrapper:[NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,759 [5400] DEBUG NHibernate.Impl.SessionImpl - done materializing entity [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,759 [5400] DEBUG NHibernate.Impl.SessionImpl - initializing non-lazy collections 2006-11-07 16:10:04,759 [5400] DEBUG NHibernate.Loader.Loader - done entity load 2006-11-07 16:10:04,775 [5400] DEBUG NHibernate.Impl.SessionImpl - initializing collection [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,775 [5400] DEBUG NHibernate.Impl.SessionImpl - checking second-level cache 2006-11-07 16:10:04,775 [5400] DEBUG NHibernate.Impl.SessionImpl - collection not cached 2006-11-07 16:10:04,775 [5400] DEBUG NHibernate.Persister.Collection.NamedQueryCollectionInitializer - initializing collection: NHibernateSqlLazyLoad.InventoryItem.Alternates using named query: GetAlternateItems 2006-11-07 16:10:04,821 [5400] DEBUG NHibernate.Loader.Custom.SQLCustomQuery - starting processing of sql query [EXEC GetAlternateItems ?, ?] 2006-11-07 16:10:04,821 [5400] DEBUG NHibernate.Loader.Custom.SQLQueryReturnProcessor - mapping alias [alternateItem] to collection-suffix [0__] 2006-11-07 16:10:04,821 [5400] DEBUG NHibernate.Loader.Custom.SQLQueryReturnProcessor - mapping alias [alternateItem] to entity-suffix [0_] 2006-11-07 16:10:04,868 [5400] DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands :1 2006-11-07 16:10:04,884 [5400] DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: EXEC GetAlternateItems ?, ? 2006-11-07 16:10:04,884 [5400] DEBUG NHibernate.Type.Int32Type - binding '1031086' to parameter: 0 2006-11-07 16:10:04,884 [5400] DEBUG NHibernate.Type.Int32Type - binding '1' to parameter: 1 2006-11-07 16:10:04,884 [5400] INFO NHibernate.Loader.Loader - EXEC GetAlternateItems @p0, @p1 2006-11-07 16:10:04,884 [5400] DEBUG NHibernate.SQL - EXEC GetAlternateItems @p0, @p1; @p0 = '1031086', @p1 = '1' 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Impl.BatcherImpl - Opened Reader, open Readers :1 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - result set contains (possibly empty) collection: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Impl.SessionImpl - uninitialized collection: initializing 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - processing result set 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - result set row: 0 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Type.Int32Type - returning '2' as column: ItemId 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - result row: NHibernateSqlLazyLoad.InventoryItem/1031086/2 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - Initializing object from DataReader: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Loader.Loader - Hydrating entity: NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Type.StringType - returning 'BRG' as column: Qualifier 2006-11-07 16:10:04,915 [5400] DEBUG NHibernate.Type.StringType - returning '397222' as column: Name 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '2' as column: ItemId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - found row of collection: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - new collection: instantiating 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '2' as column: ItemId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - loading [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - attempting to resolve [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - resolved object in session cache [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - result set row: 1 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '3' as column: ItemId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - result row: NHibernateSqlLazyLoad.InventoryItem/1031086/3 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - Initializing object from DataReader: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - Hydrating entity: NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.StringType - returning 'BRG' as column: Qualifier 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.StringType - returning '695745' as column: Name 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '3' as column: ItemId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - found row of collection: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - new collection: instantiating 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '1031086' as column: SellerId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Type.Int32Type - returning '3' as column: ItemId 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - loading [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - attempting to resolve [InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.SessionImpl - resolved object in session cache [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Loader.Loader - done processing result set (2 rows) 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Driver.NHybridDataReader - running NHybridDataReader.Dispose() 2006-11-07 16:10:04,930 [5400] DEBUG NHibernate.Impl.BatcherImpl - Closed Reader, open Readers :0 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands :0 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Loader.Loader - total objects hydrated: 2 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - resolving associations for: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - returning loading collection:[NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - done materializing entity [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - resolving associations for: [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - returning loading collection:[NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - done materializing entity [NHibernateSqlLazyLoad.InventoryItem#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - 3 collections were found in result set 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - collection fully initialized: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/3] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - collection fully initialized: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/2] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - collection fully initialized: [NHibernateSqlLazyLoad.InventoryItem.Alternates#NHibernateSqlLazyLoad.InventoryItem/1031086/1] 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - 3 collections initialized 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - initializing non-lazy collections 2006-11-07 16:10:04,946 [5400] DEBUG NHibernate.Impl.SessionImpl - collection initialized 2006-11-07 16:10:04,977 [5400] DEBUG NHibernate.Impl.SessionImpl - running ISession.Dispose() 2006-11-07 16:10:04,977 [5400] DEBUG NHibernate.Transaction.AdoTransaction - running AdoTransaction.Dispose() 2006-11-07 16:10:04,977 [5400] DEBUG NHibernate.Impl.SessionImpl - transaction completion 2006-11-07 16:10:04,977 [5400] DEBUG NHibernate.Impl.BatcherImpl - running BatcherImpl.Dispose(true) 2006-11-07 16:10:04,977 [5400] DEBUG NHibernate.Connection.ConnectionProvider - Closing connection -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-07 11:32:35
|
[ http://jira.nhibernate.org/browse/NH-610?page=all ] Sergey Koshcheyev closed NH-610: -------------------------------- Resolution: Duplicate See NH-783 for Subqueries. > DetachedCriteria and SubQuery support > ------------------------------------- > > Key: NH-610 > URL: http://jira.nhibernate.org/browse/NH-610 > Project: NHibernate > Type: Task > Components: Core > Versions: 1.0.2 > Reporter: manuj > > Hibernate 3.1 features like DetachedCriteria will greatly improve query performance in certain complex scenarios. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-07 10:00:27
|
[ http://jira.nhibernate.org/browse/NH-793?page=comments#action_14310 ] Sergey Koshcheyev commented on NH-793: -------------------------------------- Please attach a simple test case to reproduce the bug. > NHybridDataReader.ReadIntoMemory fails when the result is 0 records. "Invalid attempt to read when no data is present". > ----------------------------------------------------------------------------------------------------------------------- > > Key: NH-793 > URL: http://jira.nhibernate.org/browse/NH-793 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2, 1.0.3 > Reporter: dstefanov > Priority: Critical > > public bool Read() > { > // DS 6/30/06 - If the result is 0 records the read will always return false > // and the _isMidstream should be false so we don't attempt to read from the > // reader when we do ReadIntoMemory. We were getting an error > // "Invalid attempt to read when no data is present" when trying to get data > // from the reader is such cases. > // > //_isMidstream = true; > //return _reader.Read(); > // > _isMidstream = _reader.Read(); > return _isMidstream; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |