DataFActory.makePersistent
Hi,
Im have a crm_party object (customer) which has defined a persistenceManager configuration.
But in one specific flow i want to persist it with a differente persisnteceManagerCfg.
I saw that the DataFactory.makePersistent has a method that accept two parameters:
public static <T> T makePersistent(T argObject, IPersistenceMgr argPersistenceMgr) {
return makePersistent(argObject, argPersistenceMgr, 0L);
}
but I dont know hot to create the persistenceManagerCfg.
i would call it with something like it:
DataFactory.makePersistent(myCustomer, new PersistenceManager("STORE_STANDAR");
but PersistenceManager does not has that constructor.
Do someone knows how to get the instance of the PersistenceManager corresponding to one of the PersistenceManager condfigured on PersistenceManagerConfig.xml