-->
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.  [ 1 post ] 
Author Message
 Post subject: reached join limitation for mysql
PostPosted: Fri Apr 16, 2004 5:44 am 
Newbie

Joined: Mon Feb 09, 2004 8:58 am
Posts: 4
Hi,

I work on a application which handles several (about 45) kinds of equipments.
All those equipments have common behaviors and are described in a hierarchy of classes with about 3 depth level.

I create a mapping file using joined-subclass because all thoses equipments have differents attributs and many-to-one associations.
I take care of number of levels in the mapping file removing all unecessary level (abstract class for exemples)

I use MySQL and when i try to get a set of equipments (which could contains any kind of equipments) a get the error "MySQL can only use 31 tables in a join". It's true have about 45 tables to join : all the kind of equipments.

The same mapping works with Oracle which accepts more than 31 tables in a join.

I set the hibernate property hibernate.use_outer_join to false to split the requests in part for many-to-one associations and I set the attribute "lazy" to true for one-to-many and many-to-many associations

But the problem still remains....
How can I decrease the number of joined tables ? Is there any attributs to set in the mapping file on the joined-subclass node ?

Help me !!! I don't want to break my object model to be pleased to a database ;-)

Florent


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

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.