cayenne-commits mailing list archives

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


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:
>             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

View raw message