tag:blogger.com,1999:blog-3924739636407907202.post2645987719991551866..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: NHibernate: playing with mapping by codeFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-3924739636407907202.post-19565080760039633372012-01-03T11:45:24.068-03:002012-01-03T11:45:24.068-03:00Hello, Fabio
I need your help) Can I define many-t...Hello, Fabio<br />I need your help) Can I define many-to-many relation with 'where' clause?<br />for example in FNH I can use ChildWhere() method. For example:<br /><br />public class ProcedureMap : ClassMap<br />{<br /> public ProcedureMap()<br /> {<br /> this.HasManyToMany(a => a.FormTemplates).ChildWhere("IsDeleted = 0").AsSet();<br /> }<br />}Vitalyhttps://www.blogger.com/profile/08957225568952221100noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-53640255901772739292012-01-03T11:44:38.664-03:002012-01-03T11:44:38.664-03:00This comment has been removed by the author.Vitalyhttps://www.blogger.com/profile/08957225568952221100noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-40672438199185413262011-12-27T11:45:26.046-03:002011-12-27T11:45:26.046-03:00Hi.. .
Where can I found a updated wiki/manual or...Hi.. .<br /><br />Where can I found a updated wiki/manual or How To's for NHibernate 3.2<br /><br />Regards<br />PSAnonymoushttps://www.blogger.com/profile/10172986694385383675noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-65926383632319600962011-11-27T07:59:06.756-03:002011-11-27T07:59:06.756-03:00How can I set the ManyToOne and OneToMany mapping ...How can I set the ManyToOne and OneToMany mapping to either fetch\lazy\join? (as possible in raw mapping)sternrhttps://www.blogger.com/profile/10564296690869924946noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-38876556485448846052011-11-01T14:39:06.133-03:002011-11-01T14:39:06.133-03:00I am trying to convert from Fluent to ModelMapper ...I am trying to convert from Fluent to ModelMapper but get exception below, even with the sample code above using 3.2 GA<br /><br />NHibernate.MappingException: Could not determine type for: TestMap.Order, TestMap, for columns: NHibernate.Mapping.Column(id)<br /> at NHibernate.Mapping.SimpleValue.get_Type()<br /> at NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping)Speeding Snailhttps://www.blogger.com/profile/06752858877939319818noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-31930582468122987942011-08-09T03:35:47.594-03:002011-08-09T03:35:47.594-03:00@Fabio: It is really great. I already see some way...@Fabio: It is really great. I already see some ways to make my project easier to maintain. E.g. It should theoretically be easy to write a single Enum custom type which gets an generic argument of the enum type and use it by convention. We also have our own kind or enums, which used to have a separate custom type each ...<br /><br />It is also easy to write your own "mapping framework",Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-89250257146841398642011-08-09T03:25:40.448-03:002011-08-09T03:25:40.448-03:00@Surya Pratap: There is no HQL for "Create Ta...@Surya Pratap: There is no HQL for "Create Table". This is a plain old "auxiliary object". It used to be dialect specific (it means: you can write a different script for any dialect). I assume that this is still the case.<br /><br />And if it wasn't the case: this is C#! You can write your own "if Dialect=SqlServer" switches all over the place. The sky is the Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-23644016138975402942011-07-19T03:42:10.518-03:002011-07-19T03:42:10.518-03:00In the CreateHighLowScript you have used Direct SQ...In the CreateHighLowScript you have used Direct SQL Query, will it be possible to use a HQL query and use dialect to perform the translation.<br /><br />I understand that the session interfaces cannot be used since session factory is still not up and running.suryahttps://www.blogger.com/profile/14572438116050410018noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-123500297450665212011-07-18T04:59:13.487-03:002011-07-18T04:59:13.487-03:00I have a on old proejct that was started we;; befo...I have a on old proejct that was started we;; before FNH or evem conform. It is further complicated by usinh nhibertnate castle facitlity.<br /><br /><br />Is there arny guidance on how to use the new and shinny with the old and xml.Paul Cowanhttps://www.blogger.com/profile/11492473992478172640noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-77523846415485484382011-07-17T14:10:33.162-03:002011-07-17T14:10:33.162-03:00:))) this is true italian lifestyle:))) this is true italian lifestyleTonio Guzzihttps://www.blogger.com/profile/01020295130939348822noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-47815304853061558642011-07-17T13:43:35.064-03:002011-07-17T13:43:35.064-03:00@Tonio
For your information:
finché c'ho il sa...@Tonio<br />For your information:<br />finché c'ho il salame il prosciutto non lo incomincio.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-7416355033116777222011-07-17T13:42:06.238-03:002011-07-17T13:42:06.238-03:00yes.. your soft sexy style is irresistibile for me...yes.. your soft sexy style is irresistibile for me :)Tonio Guzzihttps://www.blogger.com/profile/01020295130939348822noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-7812974953463900342011-07-17T12:53:49.873-03:002011-07-17T12:53:49.873-03:00@Tonio,
should I be worried ?@Tonio,<br />should I be worried ?Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-28131789591602084782011-07-17T12:01:53.461-03:002011-07-17T12:01:53.461-03:00Fabio, I love you :)Fabio, I love you :)Tonio Guzzihttps://www.blogger.com/profile/01020295130939348822noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-24288578135016694362011-07-17T04:55:01.840-03:002011-07-17T04:55:01.840-03:00Drop it away from the core!Drop it away from the core!hazzikhttps://www.blogger.com/profile/02278053558276208312noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-92038835539734397632011-07-17T03:38:56.041-03:002011-07-17T03:38:56.041-03:00Fabio thanks for this post I will learn alot from ...Fabio thanks for this post I will learn alot from it ;)Rippohttps://www.blogger.com/profile/10427021389808024817noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-36346746067391591162011-07-16T21:01:08.888-03:002011-07-16T21:01:08.888-03:00Is this the death of FluentNHibernate?Is this the death of FluentNHibernate?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-60162983903236676272011-07-16T20:09:08.228-03:002011-07-16T20:09:08.228-03:00Why you always use Bag()?
OrderItems shouldn't...Why you always use Bag()?<br />OrderItems shouldn't be Set() for performance reasons?Rui Limahttps://www.blogger.com/profile/03214695400734898884noreply@blogger.com