tag:blogger.com,1999:blog-3924739636407907202.post3141987727739901837..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: entity-name in action: Entity AbstractionFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-3924739636407907202.post-89172975500019736702008-12-01T12:59:00.000-02:002008-12-01T12:59:00.000-02:00No problem.No problem.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-48852341452906243752008-12-01T12:49:00.000-02:002008-12-01T12:49:00.000-02:00I'm really sorry I was in error..sorryI'm really sorry I was in error..sorryManuel Martonehttps://www.blogger.com/profile/07753905378807241603noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-2772896519135814692008-12-01T12:45:00.000-02:002008-12-01T12:45:00.000-02:00No; I'm saying that nobody had removed "extends" a...No; I'm saying that nobody had removed "extends" at it stay there from NH0.x.y and the trunk have a lot of tests using "extends" in the mapping, so I don't know what you are talking about.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-85097128129827802762008-12-01T12:37:00.000-02:002008-12-01T12:37:00.000-02:00So you are saing that this feature represented by ...So you are saing that this feature represented by the attribute "extends" is supported by NH2.1.0 but not yet in the schema??Manuel Martonehttps://www.blogger.com/profile/07753905378807241603noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-88831855180842994672008-12-01T10:15:00.000-02:002008-12-01T10:15:00.000-02:00For support request please use one of NHibernate f...For support request please use one of NHibernate forums.<BR/>BTW NH still support "extends" tag.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-72832546403845993212008-12-01T08:54:00.000-02:002008-12-01T08:54:00.000-02:00Hi,very interesting things, but how can I use clas...Hi,<BR/>very interesting things, but how can I use class mapping attributes like "extends" if the NH 2.1.0 doesn't support it? let me know how, and then, is there some updated documentation about NH 2.1.0??Manuel Martonehttps://www.blogger.com/profile/07753905378807241603noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-68273115298375990372008-11-26T04:31:00.000-02:002008-11-26T04:31:00.000-02:00Anonymous: As you can see identifier mapped to the...Anonymous: As you can see identifier mapped to the FIELD named «id», so IEntity interface is your logical feature and (as I understand) don't affect to the mapping definition.Gomolyako Eduardhttps://www.blogger.com/profile/18139981173178606945noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-16662283340654255292008-11-25T20:31:00.000-02:002008-11-25T20:31:00.000-02:00What I don't understand is how this:public interfa...What I don't understand is how this:<BR/><BR/>public interface IEntity etc.<BR/>{<BR/> TIdentity Id { get; }<BR/>}<BR/><BR/>works. There is no setter. When NHibernate (2.0.0 GA) tries to populate a proxy defined as an interface in any of my attempts (accessed via a property) it says, in effect, "There is no setter".<BR/><BR/>I know there is no setter, but the example from Fabio doesn't have one Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-79281122422527344452008-11-24T05:15:00.000-02:002008-11-24T05:15:00.000-02:00I'm sorry, I think I found „subscribe for comments...I'm sorry, I think I found „subscribe for comments“ link :)Gomolyako Eduardhttps://www.blogger.com/profile/18139981173178606945noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-86860999371570039192008-11-24T05:14:00.000-02:002008-11-24T05:14:00.000-02:00offtopic: comments notification absence is so unus...offtopic: comments notification absence is so unusable.. )<BR/><BR/>In this case I think you need create query like this „from MyAnimal“ or „from AnotherAnimal“ and nhibernate resolve type to IAnimal and create „select … from ANIMALS“ SQL query.<BR/><BR/>Attribute abstract="true" specify that you can't use IAnimal directly as EntityType. By the way this attribute („abstract“) already exists in Gomolyako Eduardhttps://www.blogger.com/profile/18139981173178606945noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-5430343201674149112008-10-31T09:47:00.000-02:002008-10-31T09:47:00.000-02:00and what happen for HQL/Criteria ?from IAnimalwhic...and what happen for HQL/Criteria ?<BR/>from IAnimal<BR/>which will be the concrete class NH must create ?Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-83696218361180806192008-10-31T05:02:00.000-02:002008-10-31T05:02:00.000-02:00Why doesn't nhibernate allow to define mapping...Why doesn't nhibernate allow to define mapping directly for particular interface? As example we have next mapping definition:<BR/><class name="MyDomain.IAnimal, MyAssembly" table="ANIMALS" abstract="true"><BR/> <property name="Description"...<BR/><BR/>And this code:<BR/>class MyAnimal : IAnimal { ... }<BR/><BR/>IAnimal animal = new MyAnimal();Gomolyako Eduardhttps://www.blogger.com/profile/18139981173178606945noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-42936208652991104072008-10-26T20:26:00.000-02:002008-10-26T20:26:00.000-02:00Nice solution and very good article!!! Keep feedin...Nice solution and very good article!!! Keep feeding us!!!daroRenshihttps://www.blogger.com/profile/05325961169346168357noreply@blogger.com