dozer

    1熱度

    1回答

    如何映射推土機集合中的數據。共享以下示例。請幫助我一樣。 <field> <a>person.addresses[0].address</a> <b>employee.address</b> </field> 如何迭代POJO類和地圖數據從源到目的地? 我收到以下異常 Getting Mapping Exceptions org.dozer.MappingException: No re

    0熱度

    1回答

    由於這個麻煩,我掙扎了兩天,我無法得到它。我有: public class ClientBo{ ... List<PersonBo> person; ... } 和 public class ClientVo{ ... PersonVo person; ... } 我需要做的就是配置莫名其妙推土機,這樣我就可以從PersonB

    0熱度

    1回答

    我有一組我從數據庫獲取與Hibernate @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "artigo_idioma", [email protected](name="id_artigo")) @Column(name = "id_idioma") @Fetch(FetchMode.JOIN) p

    0熱度

    1回答

    我正在嘗試使用推土機映射將PO對象的哈希集映射到模型對象中。 這是我的源和目的類: - public class Source implements Serializable { Set<NoteVariableDefinitionPOImpl> noteVariableDefinitionPO = new HashSet<NoteVariableDefinitionPOImpl>();

    0熱度

    1回答

    我有兩個bean,一個有五個屬性,另一個有四個。如果我只是想忽略額外的屬性,如何配置映射? 我看到的所有排除示例都爲第一類和第二類提供參數。

    0熱度

    1回答

    Null值在我的Java項目中,我使用org.dozer.BeanMapper一個複雜的源對象合併到與同類型目標對象: sourceObject.valueA = null sourceObject.valueB = B1 sourceObject.valueC = C1 destinationObject.valueA = A2 destinationObject.valueB = n

    0熱度

    1回答

    我正在使用Dozer在實體和DTO之間進行映射,我想在我的DTO的頂級域中允許Date類型的空值。 排除領域的工作得很好,但這不是令人滿意的解決方案,因爲那總是被映射爲null: mapping(InspectionInterval.class, InspectionIntervalDTO.class) .exclude("lastPerformedOn"); 我想這樣做: mapp

    0熱度

    1回答

    public class Something{ private string id; private SomethingElse somethingElse; private OtherProperties... } public class SomethingElse{ private string id; private OtherProp

    0熱度

    1回答

    我正在使用DozerConverter從字符串轉換爲我的一個類。 代碼如下所示: class A { String property; } class B { MyType property; } class MyType { // things... @Override public boolean equals(Object ob

    2熱度

    1回答

    @Override RegistrationDto isCandidateUnfit(RegistrationDto dto) { Long nationId = 0L; if(dto.getNationMast() != null){ nationId = dto.getNationMast().getNationId(); } Regist