set shared cache mode in persistence.xml