Message:
The following issue has been re-assigned.
Assignee: Gavin King (mailto:ga...@in...)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-200
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-200
Summary: subclass is not used when using query by criteria API
Type: Bug
Status: Assigned
Priority: Major
Project: Hibernate2
Versions:
2.0.1
Assignee: Gavin King
Reporter: Machiel Groeneveld
Created: Wed, 16 Jul 2003 9:49 AM
Updated: Wed, 16 Jul 2003 7:44 PM
Description:
I have a problem with subclasses. For example an abstract Parent as the parent and Child1 and Child2 as subclasses of Parent.
When I use this:
Criteria criteria = sessie.createCriteria(Child2 .class);
criteria.add(anExpression);
Then criteria.list() gives me a list containing all subclasses of Parent which match the gives expressions.
I snippet from the config file (edited):
<class "Parent" table="table">
<id name="id" column="uid" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<discriminator column="klasse" type="string"/>
<property name="message"/>
<subclass name="Child1"/>
<subclass name="Child2"/>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|