I use FluentNHibernate (Automapping) for mapping, NHibernate 3.2 for data access and SchemaExport to generate my database.
I\'m currently working on a small PoC project and decided to take NHibernate for a spin for the persistence part.
I have following hierarchy: ClassA->ClassB->ClassC->ClassD ClassB has PropertyA. All classes are mapped as joined subclasses with table per-class.
I met exception when using annotated joined subclass, i don\'t know how to correct it, please help. Exception is: org.hibernate.MappingException: Unknown entity: B
I have an inheritance public abstract class UserEntity : Entity { public virtual int Id { get; pr开发者_StackOverflowotected set; }
So I have an interesting situation.I\'ve inherited a big mess of code where the original developer decided to forego using inheritance in favor of enums and switch statements...it\'s a perfect example
Give the following structure, MyBaseClass { public int Id {get; private set;} } MySubclassWithDiscriminator : MyBaseClass {
I am new to Hibernate and I cannot create joined sub-class table while using Hibernate annotation. Here is my code.
I have a simple table-per-subclass inheritance with the following NHibernate mapping <hibernate-mapping xmlns=\"urn:nhibernate-mapping-2.2\" default-access=\"property\" auto-import=\"true\" defaul
I have a User class, which is mapped to the \"USERS\" table in database with Hibernate. There is also a class ApplicationUser, which extends the User class and is mapped as a joined subclass in Hibern