Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Java Unit Test re-create the Tables from Entities

Hi

I've created a new dynamic web-project in Eclipse Galileo and added
Persistence & EclipseLink to it - rather than create two projects - a JPA
Project and a Web Project and including the JPA project as a dependancy of
the Web project. I've defined some entities (persistence.xml ddl-generation
set to "drop-and-create-tables") and used the Dali tools to create Tables
from Entities - and written the code to pre-populate some control table
entries via EclipseLink.

However, when I try to run any unit test that accesses the persistence
layer, EclipseLink drops the tables and re-creates them and my unit tests
fail because the control data is obviously no longer present. Is this
because I haven't separated the projects - or have I missed something in the
setup?

Regards
-- 
View this message in context: http://www.nabble.com/Java-Unit-Test-re-create-the-Tables-from-Entities-tp25950244p25950244.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top