continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Lustig ...@marclustig.com>
Subject Re: fix for Continuum 1.3.4 to operate with Oracle RDBMS
Date Thu, 24 Sep 2009 11:44:07 GMT

Hi Emmanuel,

is the ProjectSummaryResult.java auto-generated based on the model?
The ProjectDaoImpl.java is surely not generated and needs to be patched
anyway.

Marc



Emmanuel Venisse-2 wrote:
> 
> Hi Marc,
> 
> I think it would be better to use an ORM file like the one we have for
> MSSQL
> :
> https://svn.apache.org/repos/asf/continuum/branches/continuum-1.3.x/continuum-model/src/main/resources/package-mssql.orm
> 
> Can you try to do it instead of your patch?
> Thanks
> 
> Emmanuel
> 
> On Tue, Sep 22, 2009 at 11:25 AM, Marc Lustig <ml@marclustig.com> wrote:
> 
>>
>> Here is the fix.
>> I patched this dirty by replacing the class files in the jar's. Continuum
>> started up fine with an empty DB as well as with an old DB that was
>> running
>> with 1.2 before. Could not identify any issues. Project Groups are
>> displayed
>> correctly and login is successfull. No guarantee for any other
>> side-effects
>> thou.
>>
>> Apparently the maven-modules do not match the generated jar-files, so
>> it's
>> a
>> bit messy.
>>
>> Please notice that in order to run Continuum with Oracle you also have to
>> tune the package.jpox file.
>> Also, note that we run the oracle6 JDBC-driver, not the oracle14 one.
>>
>>
>> diff -rbwB
>>
>> continuum-model/src/main/java/org/apache/continuum/model/project/ProjectSummaryResult.java
>> continuum-model.org/src/main/java/org/apache/continuum/model/p
>> roject/ProjectSummaryResult.java
>> 28c28<http://continuum-model.org/src/main/java/org/apache/continuum/model/p%0Aroject/ProjectSummaryResult.java%0A28c28>
>> <     private long thesize;
>> ---
>> >     private long size;
>> 30c30
>> <     public ProjectSummaryResult( int projectGroupId, int projectState,
>> long thesize )
>> ---
>> >     public ProjectSummaryResult( int projectGroupId, int projectState,
>> > long size )
>> 36c36
>> <         this.thesize = thesize;
>> ---
>> >         this.size = size;
>> 59c59
>> <     public long getThesize()
>> ---
>> >     public long getSize()
>> 61c61
>> <         return thesize;
>> ---
>> >         return size;
>> 64c64
>> <     public void setThesize( long thesize )
>> ---
>> >     public void setSize( long size )
>> 66c66
>> <         this.thesize = thesize;
>> ---
>> >         this.size = size;
>>
>>
>> diff -rbwB
>> continuum-store/src/main/java/org/apache/continuum/dao/ProjectDaoImpl.java
>>
>> continuum-store.org/src/main/java/org/apache/continuum/dao/ProjectDaoImpl.java
>> 326c326<http://continuum-store.org/src/main/java/org/apache/continuum/dao/ProjectDaoImpl.java%0A326c326>
>> <             query.setResult( "projectGroup.id as projectGroupId, state
>> as
>> projectState, count(state) as thesize" );
>> ---
>> >             query.setResult( "projectGroup.id as projectGroupId, state
>> as
>> > projectState, count(state) as size" );
>> 354c354
>> <             int size = new Long( result.getThesize()).intValue();
>> ---
>> >             int size = new Long( result.getSize() ).intValue();
>> (END)
>>
>> --
>> View this message in context:
>> http://www.nabble.com/fix-for-Continuum-1.3.4-to-operate-with-Oracle-RDBMS-tp25530641p25530641.html
>> Sent from the Continuum - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/fix-for-Continuum-1.3.4-to-operate-with-Oracle-RDBMS-tp25530641p25560046.html
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Mime
View raw message