@Override public org.apache.openejb.jee.jpa.unit.Properties marshal(final java.util.Properties v) throws Exception { if (v == null) return null; final org.apache.openejb.jee.jpa.unit.Properties p = new org.apache.openejb.jee.jpa.unit.Properties(); for (final Map.Entry<Object, Object> entry : v.entrySet()) { p.setProperty(entry.getKey().toString(), entry.getValue().toString()); } return p; }
@Override public java.util.Properties unmarshal(final org.apache.openejb.jee.jpa.unit.Properties v) throws Exception { if (v == null) return null; final java.util.Properties properties = new java.util.Properties(); for (final Property property : v.getProperty()) { properties.setProperty(property.getName(), property.getValue()); } return properties; }