1. How can i map a joined-subclass using a composite key ? forum.hibernate.org |
2. composite id and joined subclass forum.hibernate.org |
3. joined subclass one-to-many mapping with composite key forum.hibernate.orgHi, I'm running into the following problem which has me somewhat baffled being new to Hibernate. I'll try to keep this short, I have the following situation: DocumentHeader | 1 | | 1 CommitmentDocument | 1 | | * CommitmentLineItem Looks innocent enough eh? CommitmentDocument extends DocumentHeader, so from the application perspective only a CommitmentDocument object exists, however it's persisted to ... |
4. joined-subclass and composite-id?? forum.hibernate.orgHi there, I have a problem with inheritance mapping. It seems that its not possible to use the table-per-subclass mapping when the super class has a composite id. This is my mapping file: |
5. composite id, xdoclet and joined subclass forum.hibernate.org |
6. xdoclet, joined-subclass and composite-key forum.hibernate.orgHi all, I would like to know how i can map a joined-subclass key using xdoclet, when the key is composite. For example, i have a class abstractuser, which composite-key is the class AbstractUser.PK, and a subclass Admin. I can map the composite-key of abstractuser, but i cant do the same for admin. The code for the classes is the following: ... |
7. composite-id and joined-subclasses forum.hibernate.orgGentlemen Hibernate version: hibernate 2.1.5 Mapping documents: Code: |
8. Table per subclass polymorphism and the Composite pattern forum.hibernate.orgNewbie Joined: Tue Nov 09, 2004 4:27 pm Posts: 2 Hibernate version: 2.1.6 Mapping documents: |
10. Mapping joined subclass with composite foreign key forum.hibernate.orgHibernate version: 2.1.8 Hi, I'm trying to define a mapping for the following case. I've got an existing class "BaseClass", which maps to a table "BASE". It's got a composite primary key, consisting of fields "FIELD_BASE_1" and "FIELD_BASE_2". Now, I want to create SubClass (as a subclass of BaseClass). The thing is that I want it to map to a table ... |
11. Mapping joined subclass with composite foreign key forum.hibernate.orgHibernate version: 2.1.8 Hi, I'm trying to define a mapping for the following case. I've got an existing class "BaseClass", which maps to a table "BASE". It's got a composite primary key, consisting of fields "FIELD_BASE_1" and "FIELD_BASE_2". Now, I want to create SubClass (as a subclass of BaseClass). The thing is that I want it to map to a table ... |
12. composite-id and joined-subclass forum.hibernate.org |
13. joined-subclass with composite keys forum.hibernate.orgOkay I found the answer to my question which is the following but has anyone successfully generated this using xdoclet ( the latest version ). It seems to me using xdoclet you can do / * @hibernate.joined-subclass table="T_D_W" * dynamic-update="true" * dynamic-insert="true" * lazy="true" * @hibernate.joined-subclass-key * column="O_ID" */ But you cannot define the multiple column names. I had to manually ... |
14. Abstract composite-element with subclasses forum.hibernate.orgHi, i try to map a list of dependent objects which can be different classes. The mapped dependent object is abstract. Example: |
15. Composite doesn't work in joined-subclass ? forum.hibernate.orgRegular Joined: Mon Aug 02, 2004 9:33 am Posts: 69 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.1.2 Name and version of the database you are using: MySql 5.0 My Code is like below: Code: /** * Represents a PostingDetails * * @hibernate.class */ public abstract class PostingDetails implements Serializable{ private ... |
16. Can I have joined-subclass with composite key? forum.hibernate.org |
17. Using Composite ID with subclass forum.hibernate.orgAuthor Message ash_it_pro Post subject: Using Composite ID with subclass Posted: Fri May 15, 2009 6:32 am Newbie Joined: Fri May 15, 2009 6:24 am Posts: 2 Here is my hbm file.. Code: |