Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Retrieving PU properties with Eclispelink 2.4.0

Hello,

This code used for years returned the currently used persistence unit properties e.g. username, url and so on

                Map<String, String> properties = new HashMap<String, String>();
                emf = Persistence.createEntityManagerFactory("myPUname", properties);
                Map<String, Object> map = emf.getProperties();
                String jdbcuser = map.get("javax.persistence.jdbc.user")+"";

After switching from EclispeLink 2.3.2 to 2.4.0 the map is empty.

Did I miss something in changelog for 2.4.0 or is there any other new way for retrieving this properties now?

Best regards

Jürgen



Back to the top