Search in sources :

Example 6 with FluxPartyIdentifierEntity

use of eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getFluxPartyEntity.

public static FluxPartyEntity getFluxPartyEntity() {
    FluxPartyEntity fluxPartyEntity = new FluxPartyEntity();
    fluxPartyEntity.setFluxPartyName("Flux party Name 1");
    fluxPartyEntity.setNameLanguageId("Flux party name language id 1");
    FluxPartyIdentifierEntity entity = new FluxPartyIdentifierEntity();
    entity.setFluxPartyIdentifierId("Flux party Id 1");
    entity.setFluxPartyIdentifierSchemeId("Flux Scheme Id 1");
    fluxPartyEntity.setFluxPartyIdentifiers(new HashSet<FluxPartyIdentifierEntity>(Arrays.asList(entity)));
    return fluxPartyEntity;
}
Also used : FluxPartyEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity) FluxPartyIdentifierEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity)

Aggregations

FluxPartyIdentifierEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity)6 FluxPartyEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)2 FluxReportDocumentEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxReportDocumentEntity)1 FluxReportIdentifierEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxReportIdentifierEntity)1 TypedQuery (javax.persistence.TypedQuery)1