EclipseLink « Test « JPA Q&A





1. Unit-Testing PersistenceLayer (JPA/EclipseLink)    stackoverflow.com

I am not sure what is the correct way of testing my Database, without an prepared In-Memory-Database. I have following TestSuite for JUnit4. Ignore the JpaManager, I just need this, because the ...

2. CollectionAttribute testing in JPA CriteriaBuilder    stackoverflow.com

I have a CriteriaBuilder and am trying to create a predicate to restrict results in a CollectionAttribute. I would like to say something like get all entities in this collection where ...

3. Simulate 4,000 selects on my CRUD deskto app with JPA    stackoverflow.com

i have a simple desktop application using JPA with EclipseLink, this application has 7 tables each one with 8 records, everything is ok. but i want to simulate that my desktop application ...

4. JPA Entity found in unit tests, not in EJB    stackoverflow.com

I have a DAO that uses JPA with a non-JTA data source and RESOURCE_LOCAL transactions. All of my unit tests that exercise the DAO work perfectly (data is inserted and retrieved ...

5. [Solved] Best practice for testing (Eclipselink) JPA backed web apps?    coderanch.com

Hello, I'm trying to test a Glassfish hosted web application which calls various EJBs that in turn use the Eclipselink JPA implementation as the persistence layer. In my pre-test setup method, I'm using JDBC native queries to clear out the tables in my database so that each test will run with a clean database. I then have a JUnit test case ...