-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Issue with multi level hierarchy and annotations
PostPosted: Mon Feb 01, 2010 8:12 pm 
Newbie

Joined: Mon Feb 01, 2010 8:00 pm
Posts: 1
Hi all,

I have the following hierarchy model:

abstract class A
class B extends A
class C extends A
abstract class D extends A
class E extends D
class F extends D

I setup the class A inheritance as JOINED, and as SINGLE_TABLE the class D.
When Hibernate execute a query over this entities, it doesn't use the class D configuration, so it tries to find over the E and F tables, that of course don't exist.
Also, I tried using the @SecondaryTable annotation in the class D, but doesn't work when Hibernate inserts values over E and F tables.

There is any workaround to make this work?

Thanks,
Jorge.


Top
 Profile  
 
 Post subject: Re: Issue with multi level hierarchy and annotations
PostPosted: Thu Feb 04, 2010 4:41 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Hi,

mixing inheritance strategies is allowed, but not all combinations are supported.
I suggest to try with the latest version 3.5.0beta4, if it still does not work,
then the probably the unique workaround is to find out another inheritance strategy for your tables.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.