That change did seem to prevent the tables from being dropped. Here's an
excerpt from the log:
[sparcs] ERROR [main] SchemaExport.create(275) | Table 'app_user'
already exists
However, the data that is saved in one session vanishes once I restart with
the command:
mvn jetty:run-war
It appears that the contents of the tables is reset to the default values.
So, when I create a new user, then stop the app and restart, the newly
created user is gone. Is there another setting in pom.xml or some other
config file to prevent this data loss?
-Terry
mraible wrote:
>
> The hibernate3-maven-plugin drops tables by default. Comment out the
> <drop>true</drop> in your pom.xml to change this behavior.
>
> Matt
>
> On 9/10/07, TransWebT <[EMAIL PROTECTED]> wrote:
>>
>> I am a new user of AppFuse 2.0 (RC1). I'm having the same problem -
>> every
>> time I restart the server using mvn jetty:run, the default tables (i.e.
>> user
>> table) are dropped and recreated. Since 2.0 uses maven, how would I go
>> about performing an operation similar to the ant script edit described
>> below
>> to suspend this behavior?
>> -Terry
>>
>>
>>
>> Jason Thrasher wrote:
>> >
>> > You need to disable the ant task that flushes the tables. "db-drop"
>> > deletes the database data, and "db-prepare" creates the data. You'll
>> need
>> > to make sure that these don't get called. Try to just comment out the
>> > contents of those ant targets.
>> > -Jason
>> >
>> >
>> >
>> > jithesh wrote:
>> >>
>> >> Hai,.....
>> >>
>> >>
>> >> Thanx for giving tips to my previous qtions........ I am using
>> >> appfuse 1.9x. The problem i am facing is with the ant builder. when i
>> run
>> >> the ant setup it deletes all existing tables and data , and recreates
>> it.
>> >> So each time it does so the data is lost. How can i run the ant
>> command
>> >> so that it should modify the tables without deleting any tables or
>> >> deleting datas. please help me on this issue....
>> >>
>> >>
>> >> regards,
>> >> jithesh
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Deleting-tables-tf3831795s2369.html#a12586295
>>
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Deleting-tables-tf3831795s2369.html#a12607129
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]