Retail Point-of-Service Solutions (MOSC)

MOSC Banner

DataFActory.makePersistent

edited Oct 23, 2019 5:01AM in Retail Point-of-Service Solutions (MOSC) 1 commentAnswered ✓

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

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center