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
|