-->
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: Hibernate - Entity join class
PostPosted: Fri Jun 24, 2011 10:10 am 
Newbie

Joined: Fri Jun 24, 2011 9:54 am
Posts: 1
Hi All,

I am using the joined subclass in hibernate mapping. The following are the sample mapping file I used.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<joined-subclass entity-name="Asset_Holding" extends="Data"
table="RT_DATA_ASSET_HOLDING" dynamic-update="true" dynamic-insert="true">

<key column="ID"/>
<property name="MACAddress" type="string" column="MACADDRESS" />
<property name="vendor_order" type="string" column="VENDOR_ORDER" />
<property name="arbtry_rack_exist_flag" type="string" column="ARBTRY_RACK_EXIST_FLAG" />
</joined-subclass>
</hibernate-mapping>




This mapping file Asset_Holding childclass) extends the Data(ParentClass). I have more than 61 table like this.
My problem is The hibernate joins all the subclass tables when selecting the parent info but Mysql allows us to join only 60 tables.
I have used below given query for selecting parent data.

select datainfo from Data as dataInfo.


Could you please help us to resolve this issue?

Thanks in advance
Eswar


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.