Skip to content

Commit a306656

Browse files
author
thomas
committed
protobuf example
1 parent ee47953 commit a306656

52 files changed

Lines changed: 502 additions & 71 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mapstruct-field-mapping/src/main/java/org/mapstruct/example/mapper/CustomerMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import org.mapstruct.Mapper;
2323
import org.mapstruct.Mapping;
2424
import org.mapstruct.Mappings;
25-
import org.mapstruct.example.dto.Customer;
26-
import org.mapstruct.example.dto.CustomerDto;
25+
import org.mapstruct.example.protobuf.Customer;
26+
import org.mapstruct.example.protobuf.CustomerDto;
2727
import org.mapstruct.factory.Mappers;
2828

2929
/**

mapstruct-field-mapping/src/main/java/org/mapstruct/example/mapper/OrderItemMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
import org.mapstruct.InheritInverseConfiguration;
2323
import org.mapstruct.Mapper;
24-
import org.mapstruct.example.dto.OrderItem;
25-
import org.mapstruct.example.dto.OrderItemDto;
24+
import org.mapstruct.example.protobuf.OrderItem;
25+
import org.mapstruct.example.protobuf.OrderItemDto;
2626
import org.mapstruct.factory.Mappers;
2727

2828
/**

mapstruct-field-mapping/src/main/java/org/mapstruct/example/dto/Customer.java renamed to mapstruct-field-mapping/src/main/java/org/mapstruct/example/protobuf/Customer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.mapstruct.example.dto;
19+
package org.mapstruct.example.protobuf;
2020

2121
import java.util.Collection;
2222

mapstruct-field-mapping/src/main/java/org/mapstruct/example/dto/CustomerDto.java renamed to mapstruct-field-mapping/src/main/java/org/mapstruct/example/protobuf/CustomerDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.mapstruct.example.dto;
19+
package org.mapstruct.example.protobuf;
2020

2121
import java.util.List;
2222

mapstruct-field-mapping/src/main/java/org/mapstruct/example/dto/OrderItem.java renamed to mapstruct-field-mapping/src/main/java/org/mapstruct/example/protobuf/OrderItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.mapstruct.example.dto;
1+
package org.mapstruct.example.protobuf;
22

33
/**
44
* @author Filip Hrisafov

mapstruct-field-mapping/src/main/java/org/mapstruct/example/dto/OrderItemDto.java renamed to mapstruct-field-mapping/src/main/java/org/mapstruct/example/protobuf/OrderItemDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.mapstruct.example.dto;
1+
package org.mapstruct.example.protobuf;
22

33
/**
44
* @author Filip Hrisafov

mapstruct-field-mapping/src/test/java/org/mapstruct/example/CustomerMapperTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
*/
1919
package org.mapstruct.example;
2020

21-
import static org.assertj.core.api.Assertions.assertThat;
22-
import static org.assertj.core.api.Assertions.tuple;
21+
import org.junit.Test;
22+
import org.mapstruct.example.mapper.CustomerMapper;
23+
import org.mapstruct.example.protobuf.Customer;
24+
import org.mapstruct.example.protobuf.CustomerDto;
25+
import org.mapstruct.example.protobuf.OrderItem;
26+
import org.mapstruct.example.protobuf.OrderItemDto;
2327

2428
import java.util.ArrayList;
2529
import java.util.Collections;
2630

27-
import org.junit.Test;
28-
import org.mapstruct.example.dto.Customer;
29-
import org.mapstruct.example.dto.CustomerDto;
30-
import org.mapstruct.example.dto.OrderItem;
31-
import org.mapstruct.example.dto.OrderItemDto;
32-
import org.mapstruct.example.mapper.CustomerMapper;
31+
import static org.assertj.core.api.Assertions.assertThat;
32+
import static org.assertj.core.api.Assertions.tuple;
3333

3434
/**
3535
*

mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/mapper/EmployeeMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import org.mapstruct.InheritInverseConfiguration;
2323
import org.mapstruct.Mapper;
2424
import org.mapstruct.Mapping;
25-
import org.mapstruct.example.dto.Employee;
26-
import org.mapstruct.example.dto.EmployeeDto;
25+
import org.mapstruct.example.protobuf.Employee;
26+
import org.mapstruct.example.protobuf.EmployeeDto;
2727
import org.mapstruct.factory.Mappers;
2828

2929
/**

mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/dto/Employee.java renamed to mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/protobuf/Employee.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.mapstruct.example.dto;
19+
package org.mapstruct.example.protobuf;
2020

2121
import java.util.List;
2222

mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/dto/EmployeeDto.java renamed to mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/protobuf/EmployeeDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.mapstruct.example.dto;
19+
package org.mapstruct.example.protobuf;
2020

2121
import java.util.List;
2222

0 commit comments

Comments
 (0)