-->
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: joined-subclass and explicit polymorphism limitation
PostPosted: Mon Dec 22, 2003 1:40 pm 
Beginner
Beginner

Joined: Wed Nov 26, 2003 11:53 am
Posts: 26
Location: Netherlands
Hello,

Is it possible to somehow use explicit polymorphism on a joined-subclass?

I have a hierarchy with a base class Image and joined-subclasses InternalImage and ExternalImage (i.e. three tables). The InternalImage class (and table) has a binary with image data. I want to use the explicit polymorphism trick so I can update the other information in the InternalImage class without loading the binary. According to the Lightweight pattern in the patterns section, I would need to split the InternalImage class in two, with the subclass containing the binary property and then set the "upper" lightweight class to polymorphism=explicit.

The problem is that InternalImage is a joined-subclass and explicit polymorphism can only be set on <class>.

Does anyone know a way around this limitation?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 24, 2003 7:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Does setting polymorphism="explicit" on the superclass fix your problem? I think the setting is inherited...


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.