J'ai un problème. J'ai deux entité et un DTO.Comment convertir la collection d'ID en collection de beans?
@Entity
class X {
@OneToMany
Set<Y> set;
}
@Entity
class Y {
Long id;
@ManyToOne
X x;
}
class XDTO {
Set<Long> yId;
}
Comment implémenter le mappeur dans cette situation?
@Mapper
public mapper() {
XDTO toDto (X x);
X toEntity (XDTO xDTO);
}