inheritance « Load « JPA Q&A





1. Table per subclass inheritance relationship: How to query against the Parent class without loading any subclass ??? (Hibernate)    stackoverflow.com

Suppose a Table per subclass inheritance relationship which can be described bellow (From wikibooks.org - see here) Notice Parent class is not abstract

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Project {

    @Id
 ...

2. Inheritance for saving, not for loading    forum.hibernate.org

HI all, I'm attempting to persist a class heirarchy without really wanting to persist the heriarchy.... that is, during processing of incoming requests, I may be using subclasses, e.g: SpecialFoo, which inherits from Foo. Foo itself has a mapping file. SpecialFoo does not. Upon attempting to persist a SpecialFoo, I get "No persister for: SpecialFoo". Which is reasonable I suppose, since ...

3. inheritance - lazy loading problem    forum.hibernate.org

/** * @hibernate.class table="INSTRUMENT_HISTORY_TBL" proxy="com.domainmodel.InstrumentHistory" */ public class InstrumentHistory implements java.io.Serializable { private Long instMktDtHistEntryId; private Long instrumentId; private Instrument instrument; /** * @hibernate.property */ public Long getInstrumentId() { ...

4. How can I load inheritance mapping??    forum.hibernate.org

Hello, the question is: In my object model I've got a hierarchy that represents the posible actions (superclass Action, subclasses Create, Pass, Get, Give, Destroy). In my relational model, I've got an only table which stores all these actions, that is, in the table ACTIONS, there is a row for an action: Code: ...

5. Mixed inheritance hierarchy and lazy loading problem    forum.hibernate.org

Author Message dunks Post subject: Mixed inheritance hierarchy and lazy loading problem Posted: Fri Apr 15, 2005 10:00 am Newbie Joined: Thu Apr 14, 2005 6:26 pm Posts: 4 Hi all, I have a problem and I looked all over the forum but I couldn't find anyone with a similar issue. I'm using a mixed inheritance mapping of table ...

6. Lazy loading of subclasses using joined inheritance    forum.hibernate.org

I am using Hibernate3.1 and want to know how to lazy load my subclasses . following is a sample of my mapping file

7. Problem loading inherited Collections.    forum.hibernate.org

Hibernate 3.1.3 PsotgreSQL Company.hbm CompanyCommissions.hbm CompanyCommissionDetails.hbm