Hi

It still erases the data I put into the DB, when jetty is restarted.

I have the following values for db-properties:

<dbunit.dataTypeFactoryName>org.dbunit.dataset.datatype.DefaultDataTypeFactory</dbunit.dataTypeFactoryName>
        <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>
       
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
        <jdbc.groupId>mysql</jdbc.groupId>
        <jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
        <jdbc.version>5.0.5</jdbc.version>
        <jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
       
<jdbc.url><![CDATA[jdbc:mysql://localhost/STRUTSBASIC?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8]]></jdbc.url>
        <jdbc.username>root</jdbc.username>
        <jdbc.password></jdbc.password>




mraible wrote:
> 
> Try changing this:
> 
>     <executions>
>         <execution>
>             <id>test-compile</id>
>             <phase>test-compile</phase>
>             <goals>
>                 <goal>operation</goal>
>             </goals>
>         </execution>
>         <execution>
>             <!-- Runs before integration tests and jetty:run-war -->
>             <id>test</id>
>             <phase>test</phase>
>             <goals>
>                 <goal>operation</goal>
>             </goals>
>         </execution>
>     </executions>
> 
> To this:
> 
>     <executions>
>         <execution>
>             <id>test-compile</id>
>             <phase>test-compile</phase>
>             <goals>
>                 <goal>operation</goal>
>             </goals>
>         </execution>
>     </executions>
> 
> On Mon, Jan 12, 2009 at 11:18 AM, Floggin Molly <
> [email protected]> wrote:
> 
>>
>> Hi...sorry, I should be more precise.
>>
>> I mean..my problem is that when I start the jetty, the default data is
>> loaded into the database...and the data I have added the last time the
>> jetty
>> was running..is deleted. So..each time I restart the database..the DB is
>> restored to default data....how can I avoid this.
>>
>> Regards from an thankfull developer in Norway.
>>
>>
>>
>> Floggin Molly wrote:
>> >
>> > How to turn off CLEAN_INSERT in strutsbasic each time you redeploy with
>> > mvn jetty:run-war
>> >
>> > Br
>> >
>> > Frank
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-turn-off-CLEAN_INSERT-in-strutsbasic-tp21416003s2369p21420425.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-turn-off-CLEAN_INSERT-in-strutsbasic-tp21416003s2369p21420903.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to