Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-207
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CAY-207
Summary: ExtendedTypes don't work properly with entity subclasses
Type: Bug
Status: Assigned
Priority: Major
Project: Cayenne
Components:
Cayenne Core Library
Versions:
1.1
Assignee: Andrus Adamchik
Reporter: Terry Wilcox
Created: Wed, 6 Oct 2004 12:54 PM
Updated: Wed, 6 Oct 2004 12:54 PM
Environment: Windows XP, Oracle 9i, Java 1.4
Description:
Extended types mapped in an entity subclass work properly if I query on that subclass, but not when I query on the superclass.
Eg. I have Reservoir defined with two subclasses, OilReservoir and GasReservoir. The "volume" attribute (a numeric) is not mapped in Reservoir, but is mapped to an OilVolume type for OilReservoir and a GasVolume type for GasReservoir.
If I query on GasReservoirs, readProperty("volume") returns GasVolumes. If I query on OilReservoirs, readProperty("volume") returns OilVolumes.
If I query on Reservoirs, then cast to the correct subclass, getProperty("volume") returns BigDecimals.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://objectstyle.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Wed Oct 06 2004 - 12:55:49 EDT