@@ -0,0 +1,1280 @@
+package org.springside.examples.miniweb.dao.account;%0A%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.PersistenceContext;%0Aimport javax.persistence.metamodel.EntityType;%0Aimport javax.persistence.metamodel.Metamodel;%0A%0Aimport org.junit.Test;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.transaction.TransactionConfiguration;%0Aimport org.springside.modules.test.data.Fixtures;%0Aimport org.springside.modules.test.spring.SpringTxTestCase;%0A%0A@ContextConfiguration(locations = %7B %22/applicationContext.xml%22 %7D)%0A@TransactionConfiguration()%0Apublic class JpaMappingTest extends SpringTxTestCase %7B%0A%0A%09private static Logger logger = LoggerFactory.getLogger(JpaMappingTest.class);%0A%0A%09@PersistenceContext%0A%09private EntityManager entityManager;%0A%0A%09@Test%0A%09public void allClassMapping() throws Exception %7B%0A%09%09Fixtures.reloadAllTable(dataSource, %22/data/sample-data.xml%22);%0A%09%09Metamodel model = entityManager.getEntityManagerFactory().getMetamodel();%0A%09%09for (EntityType entityType : model.getEntities()) %7B%0A%09%09%09String entityName = entityType.getName();%0A%09%09%09entityManager.createQuery(%22select o from %22 + entityName + %22 o%22).getFirstResult();%0A%09%09%09logger.info(%22ok: %22 + entityName);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Fix JPA problem