You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Jasha Joachimsthal (JIRA)" <ji...@apache.org> on 2011/09/08 14:10:13 UTC

[jira] [Created] (RAVE-258) Create vendor neutral import mechanism for initial data

Create vendor neutral import mechanism for initial data
-------------------------------------------------------

                 Key: RAVE-258
                 URL: https://issues.apache.org/jira/browse/RAVE-258
             Project: Rave
          Issue Type: Sub-task
            Reporter: Jasha Joachimsthal


In my attempts to use a different database than H2, one of the issues I faced was the initial data. Through the DataSourcePopulator we directly execute SQL queries which causes troubles like
- the exception "table \".*\" not found.*\n*.*" works for H2 and MySQL, PostgreSQL returns "ERROR: relation "widget" does not exist".
- set @variable is not the correct syntax for PostgreSQL
- a boolean value must be TRUE or FALSE (instead of 'Y' and 'N') to work with both H2, MySQL and PostgreSQL
- and last but not least: a change in sequence strategy means that the queries won't be executed because of "next value for user_id_seq".

Some of the initial data is actually essential to let the portal work. If you create a new account but don't have a filled page_layout table, the user can log in but immediately gets a stacktrace.

I want to propose to create a new populator that uses JPA to create the objects instead of native sql queries. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (RAVE-258) Create vendor neutral import mechanism for initial data

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

Jasha Joachimsthal resolved RAVE-258.
-------------------------------------

    Resolution: Won't Fix

Initial data is for the demo content only. If someone wants to deploy the project on a server, the DB contents are probably custom.

> Create vendor neutral import mechanism for initial data
> -------------------------------------------------------
>
>                 Key: RAVE-258
>                 URL: https://issues.apache.org/jira/browse/RAVE-258
>             Project: Rave
>          Issue Type: Sub-task
>            Reporter: Jasha Joachimsthal
>             Fix For: 0.4-INCUBATING
>
>
> In my attempts to use a different database than H2, one of the issues I faced was the initial data. Through the DataSourcePopulator we directly execute SQL queries which causes troubles like
> - the exception "table \".*\" not found.*\n*.*" works for H2 and MySQL, PostgreSQL returns "ERROR: relation "widget" does not exist".
> - set @variable is not the correct syntax for PostgreSQL
> - a boolean value must be TRUE or FALSE (instead of 'Y' and 'N') to work with both H2, MySQL and PostgreSQL
> - and last but not least: a change in sequence strategy means that the queries won't be executed because of "next value for user_id_seq".
> Some of the initial data is actually essential to let the portal work. If you create a new account but don't have a filled page_layout table, the user can log in but immediately gets a stacktrace.
> I want to propose to create a new populator that uses JPA to create the objects instead of native sql queries. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira