Re: Cayenne POJO inheritance

From: Aristedes Maniatis (ar..aniatis.org)
Date: Sun Aug 16 2009 - 02:21:40 EDT

  • Next message: Andrey Razumovsky: "Re: Problem with reverse relationships and inheritance"

    On 15/08/09 5:41 AM, Gilberto C. Andrade wrote:
    > Ok, after a good read on [1] and [2], I could understand that what I
    > want to do [3], right now, is not implemented in cayenne. Cayenne
    > only supply table-per-class-hierarchy feature.
    > Is that right?
    >
    > Gilberto
    >
    > [1]http://cayenne.apache.org/doc/inheritance-overview.html
    > [2]http://cayenne.apache.org/doc/modeling-inheritance.html
    > [3]http://edocs.bea.com/kodo/docs324/img/inheritance-vertical.png

    Horizontal inheritance is also implemented now (3.0M6). However, you should watch the jira task [4] to see when vertical inheritance is being worked on. In the short term, you may be able to implement what you need using the other two ways to model inheritance; for the most part, your Java code will not change when you change your database implementation of how the inheritance is represented.

    Ari Maniatis

    [4] https://issues.apache.org/jira/browse/CAY-1090

    -------------------------->
    Aristedes Maniatis
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A



    This archive was generated by hypermail 2.0.0 : Sun Aug 16 2009 - 02:22:45 EDT