Re: ExtendedType for subclasses entities?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Oct 05 2004 - 22:14:16 EDT

  • Next message: Andrus Adamchik: "Superclass field messed up in Class Generation dialog"

    Hi Terry,

    Could you please open an issue in JIRA and post a sample DataMap that
    demonstrates the problem?
    http://objectstyle.org/cayenne/bugs-features.html

    Thanks
    Andrus

    On Oct 5, 2004, at 5:58 PM, Terry Wilcox wrote:
    > We have some extended types that work fine for base entities, but when
    > we map them as attributes on an entity subclass they don’t get used.
    >
    >  
    >
    > For example:
    >
    >  
    >
    > We have a Reservoir class with a volume (numeric) attribute. We can
    > map that volume attribute to an OilVolume class and getVolume returns
    > an OilVolume object..
    >
    >  
    >
    > If we subclass Reservoir as OilReservoir and GasReservoir, then map
    > volume to OilVolume and GasVolume in their respective subclasses,
    > getVolume returns a BigDecimal for both subclasses.
    >
    >  
    >
    > Has anybody else seen this behaviour?
    >
    >  
    >
    > Thanks,
    >
    >  
    >
    > Terry Wilcox
    >
    > Terry.wilco..ntero.com
    >
    >  
    >
    >  
    >
    >  
    >
    >  
    >
    >  



    This archive was generated by hypermail 2.0.0 : Tue Oct 05 2004 - 22:14:21 EDT