Eclipse RCP/Eclipselink: persing data not working when setting configurer.setSaveAndRestore(true) -
i using eclipse rcp , eclipselink create application: problem related persisting data eclipselink. situation : application composed of main rcp , plugin uses eclipselink manage data (mysql database). - in file applicationworkbenchadvisor" (in main pluion) when set configurer.setsaveandrestore(false); , persist data em.persist(entity), works fine. when change configurer.setsaveandrestore(false) true don't persist changes!, if change again false works ! idea problem. in advance.
i think mixing ui persistence layer, 2 totally separate things.
the setsaveandrestore applicationworkbenchadvisor reads:
sets whether workbench state should saved on close , restored on subsequent open.
and has nothing entity manager, or persistence layer.
the best way convince of create simple small java app (no rcp) , try persist stuff db. you'll notice using rcp or not has no effect.
Comments
Post a Comment