Spring does not detect anything, and the spring is run always.

CREATE TABLE $TableName IF NOT EXISTS ...

and

MERGE ...

are your firends ;)

On Tue, May 8, 2012 at 11:20 PM, Luigi R. Viggiano <
[email protected]> wrote:

> > If you are using Spring, you can init H2 using the jdbc:embedded-database
>
> Many thanks vrotaru.
> The project I'm working on, it's a kind of "pet project", so when I
> work on my own I stay miles away from Spring :-)
>
> I wonder how spring detects if the database is new, to run the script.
> Btw the guy is asking about an in-memory database... and this is an
> easier case to address.
>
> BTW, since H2 is also targetted to platforms like android, having this
> feature may be useful for those who can't (or don't want to) use
> external libraries like spring.
>
> Thanks again.
>
> Luigi.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>
>


-- 
   Vasile Rotaru

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to