2017-06-01 93 views
0

与Jhipste 4.4.1,春天开机,Grandle proyect,MongoDB的在Mapper中更新新字段。 Jhipster 4.4.1

@Mapper(componentModel = "spring", uses = {}) 
public interface OportunidadMapper extends EntityMapper <OportunidadDTO, Oportunidad> { 

是OportunidadDTO广告:

private Long clienteId; 

在Oportunidad

@Field("clienteId") 
private Long clienteId; 

我加了一个字段到DTO和实体,但Mapper不解析给我。我还需要做其他事情吗,以便我能够认出它? (它们在两个类中都有getter和setter)

回答

0

您必须使用gradle重新编译您的项目,以便MapStruct注释处理器重新生成OportunidadMapperImpl类。

+0

自从Eclipse以来我就这么做了,这就是为什么我做得不好。非常感谢你。 – Jose