Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0RC2
-
None
Description
I have modeled an object select query in the modeler and specified a cache group.
When I try executing this query using a NamedQuery, the cache groups parameter is being nulled.
I have tracked this down to when NamedQuery creates a replacement ParameterizedQuery (NamedQuery.createReplacementQuery(...)), the metadata is copied across from the existing SelectQuery (which has the cache groups correctly set) by BaseQueryMetadata.copyFromInfo(...) which doesn't copy across the cache groups field.