You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/11/23 13:57:39 UTC

[jira] Created: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

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.


[jira] Commented: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783110#action_12783110 ] 

Andrus Adamchik commented on CAY-1314:
--------------------------------------




Yep, this is one of the consequences of the HSQLDB database access  
model we've been using till now.

Andrus



> 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.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: 0001-CAY-1314.patch
>
>
> 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.


Re: [jira] Commented: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by Michael Gentry <mg...@masslight.net>.
I've been experimenting with the Java Preferences feature and it seems
fairly reasonable to use so far.  The biggest pain (so far) is
handling to-many types, but I just loop through them adding a .0, .1,
.2, etc to the names of the keys for that.

mrg


On Fri, Nov 27, 2009 at 7:12 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
>
> On Nov 27, 2009, at 1:58 PM, Andrey Razumovsky (JIRA) wrote:
>
>>
>> Another thing with HSQL I dislike is that if modeler is stopped
>> unexpectedly (e.g. red square button in Eclipse), preferences are not saved.
>> Hope we can change that
>
> Yep, this is one of the consequences of the HSQLDB database access model
> we've been using till now.
>
> Andrus
>

Re: [jira] Commented: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Nov 27, 2009, at 1:58 PM, Andrey Razumovsky (JIRA) wrote:

>
> Another thing with HSQL I dislike is that if modeler is stopped  
> unexpectedly (e.g. red square button in Eclipse), preferences are  
> not saved. Hope we can change that

Yep, this is one of the consequences of the HSQLDB database access  
model we've been using till now.

Andrus

[jira] Commented: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783106#action_12783106 ] 

Andrey Razumovsky commented on CAY-1314:
----------------------------------------

Another thing with HSQL I dislike is that if modeler is stopped unexpectedly (e.g. red square button in Eclipse), preferences are not saved. Hope we can change that

> 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.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: 0001-CAY-1314.patch
>
>
> 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.


[jira] Closed: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by "Olga Tkacheva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Tkacheva closed CAY-1314.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M1

> 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.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>             Fix For: 3.1M1
>
>         Attachments: 0001-CAY-1314.patch
>
>
> 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.


[jira] Updated: (CAY-1314) Migrate Modeler Preferences to Java Preferences API: migrate org.apache.cayenne.modeler.ModelerPreferences

Posted by "Olga Tkacheva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Tkacheva updated CAY-1314:
-------------------------------

    Attachment: 0001-CAY-1314.patch

is an unfinished version. it using only for presentation to convert the old preferences to use Preferences API.

> 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
>         Attachments: 0001-CAY-1314.patch
>
>
> 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.