-->
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.  [ 4 posts ] 
Author Message
 Post subject: select class
PostPosted: Fri Dec 30, 2005 12:44 pm 
Newbie

Joined: Mon Nov 14, 2005 12:46 pm
Posts: 10
i have the following class hierarchy
A
B:A
C:A

can i do a "select from A where id=xxxx" ?
everytime i try to do it i get an "object was not of the specified sublcass" error.

everything else is working fine. i can do all crud operations on B and C.


Top
 Profile  
 
 Post subject: template
PostPosted: Fri Dec 30, 2005 2:02 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Please post your mapping(s) and code please. It is really the good idea to follow H forum suggested template.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 2:58 pm 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
I've seen that error when my base class is abstract and has an abstract method. This is, as far as I know, a limitation of the DynamicProxy.

Removing abstract methods fixes the problem for me.

This might not be your problem, but it's worth a shot!

Cheers,

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 4:24 am 
Regular
Regular

Joined: Mon Jul 18, 2005 4:10 am
Posts: 92
Location: Poland
Hi, I was dealing the same problem long time ago, the cause was "char" type of the discriminator column (using varchar and trimming trailing spaces solved the problem)

http://sourceforge.net/forum/message.php?msg_id=3045530

_________________
michal


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.