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: Batch-size not supported for subclasses?
PostPosted: Sun Mar 02, 2008 5:37 pm 
Regular
Regular

Joined: Tue Dec 02, 2003 6:25 pm
Posts: 61
Location: Dallas, TX
I've found that with subclasses (in the same table, not joined), batch-size neither inherits from the parent <class> mapping, nor am I allowed to enter it on the <subclass> mapping. (I get an XML Validation Error: the 'batch-size' attribute is not declared)

However, I've found that I can make batch-loading of subclasses work if I programmatically retrieve the PersistentClass for my subclass via the Configuration object and manually set its BatchSize attribute before calling BuildSessionFactory. I haven't tested extensively enough to know whether there are any negative side-effects to doing this.

Does anyone know if the lack of batch-loading for subclasses is a bug, such as accidentally omitting it from the schema, or a feature that was deliberately disabled?


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.