polymorphism « Component « JPA Q&A





2. Component Polymorphism    forum.hibernate.org

Hi All, From what I can tell, this isn't directly possible... however I'm wondering if someone can suggest a work-around. What I'd like is to be able to use a "component" mapping, that includes polymorphism - i.e. one of the table columns for the component object would be a discriminator, just how polymorphism works for "class" and "subclass". Ideas? thanks, james ...

3. Polymorphism in Components    forum.hibernate.org

Hello, I have a class called Process that contains an Account. This Accountdata is part of the Processtable. So I made up a Component. When I create an Process, I load an Account from the Database an put it into the Process. This way, i copie the Accountdata into the Process for history-reasons. Now I have the Problem, that the Account ...