* @author Max Ross <maxr@google.com>
*/
public class JPATableAndColumnTest extends JPATestCase {
public void testInsert() throws EntityNotFoundException {
HasTableAndColumnsInMappingJPA htacim = new HasTableAndColumnsInMappingJPA();
htacim.setFoo("foo val");
beginTxn();
em.persist(htacim);
commitTxn();
assertNotNull(htacim.getId());
Entity entity = ds.get(KeyFactory.createKey(
HasTableAndColumnsInMappingJPA.TABLE_NAME, htacim.getId()));
assertNotNull(entity);
assertEquals(HasTableAndColumnsInMappingJPA.TABLE_NAME, entity.getKind());
assertEquals("foo val", entity.getProperty(HasTableAndColumnsInMappingJPA.FOO_COLUMN_NAME));
}