SPCMeasurementValidator.java:Validator too strict. SPCMeasurements can has a Part which is null
TestAPLSpcController.java:Generics need to be support by JEE 6
AllTests.java:Test suite
EntityManagerThreadLocal.java:Implemented ThreadLocal to hold and control the EntityManager reference.
DAO.java:Removed locks as now thread safe due to being associated with ServletRequest
TestSPCMeasurment.java:No longer required to persist Part object separately in the test
DAO:Removed unnecessary constructor argument
EntityManagerFilter.java:Filter links EntityManager instance to each request
SPCMeasurement.java:For field Part changed to Fetch.EAGER
Test:persistence.xml:Database location has changed
EntityManagerFilter.java:Used Spring's ApplicationContext to get the EntityManagerFactory bean
DAO.java:getEntitiy(String): No longer detaches entity
Added Class description comments
DAOException.java created
DAO:Now throws DAOException
DAO:Subclasses removed thread locking
DAO:Methods throws DAOException when an PersistenceException is raised.
Classes dependent on the DAO class must handle DAOExceptions