[ 
https://issues.apache.org/cayenne/browse/CAY-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13074#action_13074
 ] 

Marcin Skladaniec commented on CAY-795:
---------------------------------------

Hi
I have tried to implement simple version of inheritance where there is a single 
abstract entity without a dbEntity, and two subclasses of this abstract entity 
with dbEntities. 
As for now i can commit new objects, but I cannot fetch. My debugging lead me 
to the SelectTranslator.java where I can see a correct number of RawDataRows 
being fetched, but when it is time to fault the rows into entities all falls 
apart. The persistent objects are created, but they always stay in HOLLOW 
state. 
I have tried to find the reason of this which this is happening, no luck so 
far. I'll attach diff of my working copy in a moment, maybe someone else can 
pick this up and see what am I doing wrong.

> Horizontal inheritance
> ----------------------
>
>                 Key: CAY-795
>                 URL: https://issues.apache.org/cayenne/browse/CAY-795
>             Project: Cayenne
>          Issue Type: New Feature
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Ari Maniatis
>            Assignee: Ari Maniatis
>             Fix For: 3.0
>
>         Attachments: inheritance-progress.diff
>
>
> Implement horizontal inheritance. This requires:
> 1. Allow dbEntityName attribute to be null in <obj-entity ...>
> 2. Modeler changes to allow this to be set. Validation should require that 
> any class set in this way should have at least one subclass.
> 3. Changes, particularly to SelectQuery, which accomodates this change and 
> returns the appropriate objEntities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to