$(".filter-close").click(function(){
$(this).parent().remove();
});
Run Code Online (Sandbox Code Playgroud)
此代码段在控制台中工作,但在脚本标记和附加的js文件中都不起作用.
我有一种情况,我在 DTO 中有另一个 DTO,我必须将其映射到其相应的实体。
我正在使用 mapstruct 并且我已经有另一个实体映射器。
DTO
public class EntityDTO {
private AnotherEntityDTO anotherEntityDTO;
// other fields
}
Run Code Online (Sandbox Code Playgroud)
Entity
@Entity
public class Entity {
private AnotherEntity anotherEntity;
// other fields
}
Run Code Online (Sandbox Code Playgroud)
如何更改 EntityMapper 接口,以便我可以将 anotherEntityDTO 映射到 anotherEntity?
谢谢。