-->
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: inheritance and findByExample
PostPosted: Wed Jun 07, 2006 1:29 pm 
Newbie

Joined: Tue Mar 08, 2005 4:57 am
Posts: 8
Hi, we have the following mappings

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name = "message", uniqueConstraints = {})
public class Message {

}

@Entity
@Table(name="review")
public class Review extends Message {

}

@Entity
@Table(name="comment")
public class Comment extends Message {

}

With this structure, findByExample queries on the Review table no longer work. We have verified that the rows it should find are in the table.

Previously, we did not use inheritance and the unchanged JUnit tests which had the findByExample query in it ran successfully and returned the correct result.

Is this a bug in hibernate? Or can you not use QBE with inheritance?

D


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.