Skip to content

Commit

Permalink
fix dto property to stay compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSebastian committed Jul 26, 2024
1 parent 35a0661 commit bd148c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
import java.util.Set;

public record ReferendumvorlagenDTO(@NotNull String stimmzettelgebietID,
@NotNull Set<ReferendumvorlageDTO> referendumvorlagen) {
@NotNull Set<ReferendumvorlageDTO> referendumvorlage) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import de.muenchen.oss.wahllokalsystem.basisdatenservice.services.referendumvorlagen.ReferendumvorlagenModel;
import de.muenchen.oss.wahllokalsystem.basisdatenservice.services.referendumvorlagen.ReferendumvorlagenReferenceModel;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper
public interface ReferendumvorlagenDTOMapper {

@Mapping(target = "referendumvorlage", source = "referendumvorlagen")
ReferendumvorlagenDTO toDTO(ReferendumvorlagenModel referendumvorlagenModel);

ReferendumvorlagenReferenceModel toModel(String wahlbezirkID, String wahlID);
Expand Down

0 comments on commit bd148c9

Please sign in to comment.