Skip to content

Instantly share code, notes, and snippets.

"C:\Program Files\Java\jdk-11\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\derksenjpam\Development\source\uitgifteloket\uitgifteloket-v2 -Djansi.passthrough=true -Dmaven.home=C:\Users\derksenjpam\.m2\wrapper\dists\apache-maven-3.9.2-bin\2subkmci8v6cjhba66g60p18mo\apache-maven-3.9.2 -Dclassworlds.conf=C:\Users\derksenjpam\.m2\wrapper\dists\apache-maven-3.9.2-bin\2subkmci8v6cjhba66g60p18mo\apache-maven-3.9.2\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.2\lib\idea_rt.jar=54070:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.2\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\derksenjpam\.m2\wrapper\dists\apache-maven-3.9.2-bin\2subkmci8v6cjhba66g60p18mo\apache-maven-3.9.2\boot\plexus-classworlds-2.7.0.jar;C:\Users\derksenjpam\.m2\wrapper\dists\apache-maven-3.9.2-bin\2subkmci8v6cjhba66g60p18mo\apache-maven-3.9.2\boot\plexus-classworlds.license org.codehaus.cla
package mapstruct.ex;
import org.mapstruct.*;
import java.util.List;
import java.util.Optional;
import java.util.Set;
@Mapper
public interface IvpVodDtoMapperService {
@sjaakd
sjaakd / Course.java
Created November 2, 2018 21:09
exploding lists
package test;
public class Course {
}
@sjaakd
sjaakd / Country.java
Created August 29, 2018 20:23
issue1599
package org.mapstruct.ap.test.bugs;
public class Country {
}
@sjaakd
sjaakd / pom.xml
Created August 29, 2018 19:52
1599
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>MapStruct1599</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.tst;
import org.mapstruct.Mapper;
import src.test.Test;
package org.mapstruct.ap.test.sourcenobean;
/**
*
* @author Sjaak Derksen
*/
public class Source {
private String val1;
private String val2;
@sjaakd
sjaakd / Helper.java
Created January 25, 2014 09:43
Custom Mapper with same simpleName on different namespace (package)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.mapstruct.p2;
/**
*
@sjaakd
sjaakd / pom.xml
Created January 20, 2014 10:38
JAXB and List getters. someId2 generates only a getter, whereas someId1 generates a getter and a setter (without binding, out of the box). MapStructJaxbExample _2/src/main/resources/schema/xsd/test.xsd MapStructJaxbExample_2/pom.xml
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>MapStructJaxbExample2</artifactId>
<version>1.0-SNAPSHOT</version>
<name>MapStructJaxbExample 2</name>
<url>http://maven.apache.org</url>
@sjaakd
sjaakd / binding.xjb
Created January 2, 2014 16:38
OGC JAXB project to demonstrate what's needed foor custom factories in MapStruct
<jaxb:bindings version="1.0" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc">
<jaxb:globalBindings
fixedAttributeAsConstantProperty="true"
typesafeEnumBase="xs:string"
typesafeEnumMemberName="generateName"