Skip to main content
0 votes
1 answer
68 views

Given the following classes: public abstract class MyAbstractB { private B b; } public abstract class MyAbstractBDto { private BDto bDto; } public class ItemWithB extends MyAbstractB { private C ...
bkqdad's user avatar
  • 37
0 votes
2 answers
97 views

I have two similar DTO classes and a MapStruct mapper. When mapping from one object with additional String parameters, nested fields aren't mapped automatically — they become null unless explicitly ...
Arteilo's user avatar
1 vote
0 answers
29 views

I have several classes as follows: @Data public class Parent { long id; String name; } @Data public class Child extends Parent { String nickName; } @Data public class Grandchild extends Child {...
bkqdad's user avatar
  • 37
0 votes
0 answers
61 views

I am having trouble wrapping my head around subclass mappings. I have 3 classes: @Data public class Parent { long id; String name; public boolean isEmpty() { return StringUtils.isEmpty(name)...
bkqdad's user avatar
  • 37
1 vote
2 answers
121 views

I am using clean architecture and have 3 modules: application -> details -> core I'm trying to use Mapstruct to generate mappers in application & mappers in details. I have this mapper in ...
kevin liu kai's user avatar
0 votes
1 answer
154 views

After upgrading from Java 11 to Java 17, I'm encountering compilation errors related to Lombok's @FieldNameConstants annotation. I'm also using MapStruct, so I'm mentioning that in case that could be ...
Francislainy Campos's user avatar
0 votes
1 answer
51 views

I think MapStruct great for conversion Entity to DTO. I would like to use the new MapStruct Spring Extensions 1.1.3 to do this task but I think the documentation confusing. So, how to use MapStruct ...
cviniciusm's user avatar
0 votes
0 answers
67 views

I am trying to migrate our API to Java 17 and Spring 6.2x version and I have some issue with the MapStruct. The qualifiedByName is recognized for some and other result in following error: error: ...
sharonm's user avatar
  • 127
0 votes
0 answers
60 views

I have Employee entity with pk emp_id. Employee has child collection as EmployeeLeaves (table emp_leaves). It has id, emp_id, leave_date, comment field. I have @OneToMany(cascade = CascadeType.ALL, ...
pingo_bingo's user avatar
3 votes
1 answer
191 views

I'm using Java 8, Spring Boot 2.3.4.RELEASE version, Maven as the build tool and IntelliJ as my IDE. I have two DTO's called VehicleMasterDto and VehicleDetailDto Using MapStruct, I created the ...
Arunoda Gunawardana's user avatar
1 vote
0 answers
112 views

I have a Maven multi-module project (repo), following hexagonal arquitecture, with the following structure: parent ├─ domain (Lombok) ├─ app (Lombok) └─ infra ...
Sergio Bernal's user avatar
2 votes
1 answer
151 views

I'm working in an application where I need to map some input to an entity class and I'm using mapstruct like this: import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct....
Alvaro Pedraza's user avatar
0 votes
0 answers
40 views

I'm trying to map Phone, Book to PhoneDto, BookDto using ItemMapper with @SubclassMapping in Mapstruct. The issue is during subclass mapping, the second parameter String imagePath gets ignored. I ...
evol1102's user avatar
-2 votes
1 answer
99 views

I'm experiencing a ClassNotFoundException: AccountMapper when trying to integrate MapStruct with Spring Boot 3.5.4. The MapStruct annotation processor generates the implementation class correctly, but ...
Javs's user avatar
  • 61
1 vote
1 answer
65 views

I have several DTOResponse class, each one of them extending MiniDTOResponse. @Data @NoArgsConstructor public class MiniDTOResponse extends EmptyDTOResponse { private boolean exists; } @Data ...
user2087103's user avatar

15 30 50 per page
1
2 3 4 5
107