python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Mapstruct one to many ,fill DTO row by row
There is the Customer entity which has a one to many relationship to entity Address,so there is a List<Address> addresses=new ArrayList<> in Customer.Entity Address has an Email field.
For...
microwth
Votes: 0
Answers: 1
SpringBoot Could not autowire. No beans of 'UserMapper' type found error for Mapstruct Mappers
This is my User class.
@Entity
@Table(name = "user_table")
@Data
public class User {
@Id
private Long id;
private String userName;
private String password;
}
This is my UserDto, I know th...
eagerdev
Votes: 0
Answers: 1
Mapstruct: custom mapping int to CharSeq Java
I am writing a mapper using MapStruct with Spring Boot and I currently am struggling with a mapping to map an int field to a CharSeq field:
I tried the following:
@Mapping(
target = "target....
fillifilli
Votes: 0
Answers: 2
How to use multiple properties from an object and map it to a single one in an other?
I need to map two objects together using both custom and regular mapping. Some properties are explicit and don't need any modifications, just mapping (because they don't have the same name), but some ...
Philippe B.
Votes: 0
Answers: 1