cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CAY-1400) lazyInitParentDomainName will become null when using Child Context
Date Fri, 05 Mar 2010 10:44:27 GMT

     [ https://issues.apache.org/jira/browse/CAY-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Razumovsky reassigned CAY-1400:
--------------------------------------

    Assignee: Andrey Razumovsky

OK I see the problem:

        DataContext context = createDataContextWithSharedCache();
        ObjectContext child = context.createChildContext();

        ObjectContext deserializedContext = (ObjectContext) Util.cloneViaSerialization(child);

        assertNotNull(deserializedContext.getChannel());
        assertNotNull(deserializedContext.getEntityResolver());

> lazyInitParentDomainName will become null when using Child Context
> ------------------------------------------------------------------
>
>                 Key: CAY-1400
>                 URL: https://issues.apache.org/jira/browse/CAY-1400
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0RC2
>         Environment: every platform
>            Reporter: Tsutomu YANO
>            Assignee: Andrey Razumovsky
>
> lazyInitParentDomainName field of DataContext is used to revive EntityResolver in the
context. But the field become null on Child Context. So Child Context's EntityResolver will
be lost at deserialized time.

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


Mime
View raw message