remove <property name=eclipselink.persistence-context.flush-mode value=commit/> from PersistenceGen.xml.ftl