From: SourceForge.net <no...@so...> - 2004-11-09 13:49:37
|
Bugs item #1063104, was opened at 2004-11-09 13:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1063104&group_id=27895 Category: Locators Group: TM4J 0.9.6 Status: Open Resolution: None Priority: 5 Submitted By: Andy Peel (atpeel) Assigned to: Nobody/Anonymous (nobody) Summary: Unused locators aren't removed Initial Comment: I have a topic map for which I've changed the base locator using: org.tm4j.topicmap.TopicMap.setBaseLocator(Locator base) However, this leaves a row in the locator table (I'm using Hibernate) for the old locator. Kal says that the problem is that locators can be used in more than one context and there's no cleanup of unused locators: > the data model allows a locator to be referenced as the value of an > occurrence, as a subject indicator, a subject address, a source locator > or a topic map base locator and potentially there could be other > references to the same object. In my case I'd be happy to remove the old base locator as I know it's no longer used, although there's no API method to do this. Another possible solution might be to change the data model so that locators aren't shared, though I don't know what downside there might be to this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1063104&group_id=27895 |