cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faizel Dakri (Jira)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2658) DataChannelMetaData is null during cgen execution
Date Thu, 11 Jun 2020 23:40:00 GMT

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

Faizel Dakri commented on CAY-2658:
-----------------------------------

Hi [~ntimofeev], I've tested the fix against my build and all looks good for my needs. I primarily
use cgen via Maven, but if there's something specific you'd like me to test, I'd be willing
to help out. I'm new to Cayenne, so I might need a little nudge in the right direction.

> DataChannelMetaData is null during cgen execution
> -------------------------------------------------
>
>                 Key: CAY-2658
>                 URL: https://issues.apache.org/jira/browse/CAY-2658
>             Project: Cayenne
>          Issue Type: Bug
>          Components: cgen
>    Affects Versions: 4.2.M2
>         Environment: Mac OS X 10.15.4
> Cayenne 4.2.M2
>            Reporter: Faizel Dakri
>            Assignee: Nikita Timofeev
>            Priority: Minor
>             Fix For: 4.2.M2
>
>
> During cgen execution, the {{DataChannelMetaData}} instance is not set upon data map
load. It looks like {{CgenModule}} does not bind to the {{ExtensionAwareHandlerFactory}},
nor does it load the {{InfoExtension}}, so when the data map is loaded, the metadata instance
is null. This causes metadata lookups to fail from the {{MetadataUtils}} class that is supplied
to the velocity context during class generation.
> I *think* fix is to have {{CgenModule}} bind to the {{ExtensionAwareHandlerFactory}}
and then let {{ProjectModule}} contribute the {{InfoExtension}}.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message