cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Closed: (CAY-1438) refactoring EntityInheritanceTree lookups
Date Mon, 31 May 2010 01:33:39 GMT


Andrus Adamchik closed CAY-1438.

    Resolution: Fixed

> refactoring EntityInheritanceTree lookups
> -----------------------------------------
>                 Key: CAY-1438
>                 URL:
>             Project: Cayenne
>          Issue Type: Task
>          Components: Core Library
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.1M1
> Related to CAY-1090 vertical inheritance work, need to make EntityInheritanceTree object
easier to use. As a part of that will change EntityResolver.lookupInheritanceTree() logic
that would return NULL if a class has no subclasses. Instead this method will return non-null
instance for any existing entity  while a check for subclasses will be performed by the callers.

> After doing some local refactoring based on this change, I foudn that it actually saved
some if/else code,  and resulted in a cleaner inheritance handling in general. One possible
further improvement will be to split EntityInheritanceTree functions into "pure metadata"
and "behavior" and assign the later to the ClassDescriptor (in the same way we split ObjEntity
and ClassDescriptor responsibilities).

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

View raw message