object « Composite « JPA Q&A





1. How to properly implement a domain object with composite id in Hibernate?    stackoverflow.com

I have the following domain objects:

public class Department  {
     private long departmentId;
}
public class Manager {
     private long managerId;
}    
public ...

5. Object vs primitives in identifier object (in composite-id)    forum.hibernate.org

???????? ??????????? ?????????? ...

6. composite BO object X maps to multiple tables...    forum.hibernate.org

Hello everybody I have following case. I have BO objects already designed and a database already designed. Both cannot change. Now I want to map my business object with tables in the database. Here is an example of what I have. Following tables exist DB == Table Y Field a Field b Field c Table Z Field d Field e Field ...

7. Mapping across objects    forum.hibernate.org

I'm a newbie to Hibernate, but can't seem to find an answer in the Help docs or Google. I have a situation where my class structure is as follows: Code: public class AddressType { private String id; // PK private String description; ..... } public ...

8. Mapping multiple tables to one object, foreign composite key    forum.hibernate.org

I've poured over the Hibernate docs and I can't find a solution to this problem. I've tried several different solutions with the hibernate mappings but I can't figure it out. Basically, I'm working with Brands that can have a different name depending on the current language (ie. the name is translated to whatever language we're currenlty using). Here is the Java ...





10. Stored procedures and composite objects    forum.hibernate.org

Newbie Joined: Mon Nov 21, 2005 11:41 am Posts: 3 Hi folks, I'm currently working on an application which uses hibernate 3 with 2 distincts databases. We are mapping one of the database with "native" Hibernate mappings. Some constraints on the second DB force us to use only stored functions/procedures to communicate with it. As we are very satisfied with the ...

12. API methods to determine composite-id of domain object.    forum.hibernate.org

Hi, I want to know whether there is any API in hibernate to know whether the domain object is having a composite-id or not. I am able to get the single key property using ClassMetaata.getIdentifierPropertyName(). But i am not able to find API for composite-id's. Please help me in this regard. Thanks in Advance. Regards Ravi

13. Composite foreign key causing "object is not an instanc    forum.hibernate.org

Newbie Joined: Fri Sep 19, 2008 11:43 am Posts: 3 I am using hibernate mapping files to map a couple of classes - twice. I have 2 classes: Event and SubEvent. SubEvent is a child of Event. I am having an issue with the mappings that are using a composite foreign key. When attempting to persist, I am consistently getting an ...