[
https://issues.apache.org/jira/browse/JUDDI-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kurt T Stam updated JUDDI-438:
------------------------------
Fix Version/s: 3.0.5
> find_tModel by CategoryBag only returns deleted tModel
> ------------------------------------------------------
>
> Key: JUDDI-438
> URL: https://issues.apache.org/jira/browse/JUDDI-438
> Project: jUDDI
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.4
> Reporter: Lyudmil Latinov
> Assignee: Kurt T Stam
> Fix For: 3.0.5
>
>
> 1. Save tModel with some KeyedReferences in CategoryBag.
> 2. Delete tModel.
> 3. Find tModel by Name + CategoryBag -> tModel is not listed in the results
> -> this is OK.
> 4. Find tModel by CategoryBag only -> tModel is listed in the results -> this
> is issue as specification states: "Any tModels hidden in this way are still
> accessible, via the get_registeredInfo and get_tModelDetail APIs, but are
> omitted from any results returned by calls to find_tModel."
> Deleted tModels are not return in find_tModel if
> FindTModelByCategoryQuery.java is modified from:
> public static List<?> select(EntityManager em, FindQualifiers fq, CategoryBag
> categoryBag, List<?> keysIn) {
> return findQuery.select(em, fq, categoryBag, keysIn);
> }
> to:
> public static List<?> select(EntityManager em, FindQualifiers fq, CategoryBag
> categoryBag, List<?> keysIn) {
> return findQuery.select(em, fq, categoryBag, keysIn, new
> DynamicQuery.Parameter(TModelQuery.ENTITY_ALIAS + ".deleted", new
> Boolean(false), DynamicQuery.PREDICATE_EQUALS));
> }
> I would suggest same fix should be applied to
> FindTModelByCategoryGroupQuery.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.