This content has been marked as final.
Show 5 replies
-
1. Re: How to mix inheritence hierarchies with Hibernate ?
tom.baeyens Nov 7, 2007 4:11 AM (in response to porcherg)mixed inheritence is supported: here's already a first indication: http://www.hibernate.org/346.html. And I know I actually prototyped that to see if it worked for our use case.
I'll check some more. Maybe I can find the prototype or more docs. -
2. Re: How to mix inheritence hierarchies with Hibernate ?
tom.baeyens Nov 7, 2007 7:15 AM (in response to porcherg)i found the prototype and put it on the wiki: http://wiki.jboss.org/wiki/attach?page=JbpmPvm%2Finheritencetest.zip
can you have a look ? -
3. Re: How to mix inheritence hierarchies with Hibernate ?
porcherg Nov 7, 2007 7:21 AM (in response to porcherg)"tom.baeyens@jboss.com" wrote:
i found the prototype and put it on the wiki: http://wiki.jboss.org/wiki/attach?page=JbpmPvm%2Finheritencetest.zip
can you have a look ?
This example uses "subclass" and "join" elements. As said in my previous post, this strategy is very restrictive and it's not possible to map a list with this strategy. -
4. Re: How to mix inheritence hierarchies with Hibernate ?
tom.baeyens Nov 7, 2007 7:46 AM (in response to porcherg)if that is the case, we need to list the base types that have process-language extension tables. then we need to search for alternatives.
is there a piece in the docs that backs your statement ? -
5. Re: How to mix inheritence hierarchies with Hibernate ?
porcherg Nov 7, 2007 8:37 AM (in response to porcherg)"tom.baeyens@jboss.com" wrote:
is there a piece in the docs that backs your statement ?
I don't find this in the docs but it's in the DTD (http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd).
We can however do the following:
- for each basic type or many-to-one association of extension nodebehaviours, we map them in a "join" element, in one table per process language.
- for each collection, we map them in a separate association table, and the mapping is defined outside the "join" element. I think this does not add any column to the NodeBehaviour table.
With this strategy, this may work. I will test this solution.
regards,
Guillaume