Migrate Modeler Preferences to Java Preferences API: migrate
org.apache.cayenne.modeler.ModelerPreferences
----------------------------------------------------------------------------------------------------------
Key: CAY-1314
URL: https://issues.apache.org/jira/browse/CAY-1314
Project: Cayenne
Issue Type: Task
Components: CayenneModeler GUI
Affects Versions: 3.1
Reporter: Andrus Adamchik
Assignee: Olga Tkacheva
There are multiple problems with the current Cayenne Modeler preferences
mechanism (e.g. CAY-466)... The main problem I guess is that HSQLDB does not
provide a way for concurrent reliable access to a prefs DB file. There were
suggestions to switch to H2, still I am in favor of not rinventing the wheel
and just going with java.util.prefs. Among other things that would allow us to
share preferences between CM and runtime framework, specifically to easily use
the JNDI hack (http://cayenne.apache.org/doc/using-jndi.html) without the need
to include the modeler jars in the application..
As a first step I suggest that we convert the old
org.apache.cayenne.modeler.ModelerPreferences (that is not even using HSQLDB)
to use Preferences API. This will still leave room for rollback of this whole
idea and will let us try built-in Java prefs mechanism before we fully commit
to it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.