incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Feist (JIRA)" <>
Subject [jira] Updated: (LOKAHI-3) Only one entity appears when two have the same name.
Date Tue, 09 Oct 2007 12:37:50 GMT


Jeff Feist updated LOKAHI-3:

    Attachment: TMCCollectionImpl.patch

public TreeMap<String, ItemType> orderByName() {

This function adds the elements to a tree map using the entity's name as the key. [tm.put(dao.getName(),
dao);] This will only add one when two names (keys) are the same. 

The attached patch appends the entity's unique PK to the name giving it a unique key for the
tree map. 

> Only one entity appears when two have the same name.
> ----------------------------------------------------
>                 Key: LOKAHI-3
>                 URL:
>             Project: Lokahi
>          Issue Type: Bug
>            Reporter: Jeff Feist
>         Attachments: TMCCollectionImpl.patch
> If two entities share the same name, only one appears in the list. For example, if two
apaches have the same name of "Intranet Apache", only one will appear in the list. The only
way of knowing the other one exists is to check in the database. 

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

View raw message