org.epos.handler.dbapi.util.ToEDM Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db-api Show documentation
Show all versions of db-api Show documentation
EPOS Database APIs useful to interact with EPOS Metadata Catalogue
The newest version!
package org.epos.handler.dbapi.util;
import org.epos.eposdatamodel.Address;
import org.epos.handler.dbapi.model.EDMAddress;
import java.util.UUID;
public class ToEDM {
public static EDMAddress generateEdmAddress(Address address) {
EDMAddress edmAddres = new EDMAddress();
edmAddres.setCountry(address.getCountry());
edmAddres.setLocality(address.getLocality());
edmAddres.setPostalCode(address.getPostalCode());
edmAddres.setStreet(address.getStreet());
edmAddres.setId(UUID.randomUUID().toString());
return edmAddres;
}
}