Nested fields mapping not working in Orika Mapper
<p>Find below entity classes : </p>

<pre><code>@Entity
@Table(name="rooms")
public class RoomEntity {

    @Column(name="mr_code", length=50, nullable=false)
    private String code;

    @Column(name="mr_roomtype", nullable=false, length=50)
    private String type;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "mr__hotelId", nullable = false)
    private HotelEntity hotel;

    //getters and setters
}


 @Entity
 @Table(name="hotels")
 public class HotelEntity{

    @Column(name="mh_name", nullable=false)
    private String name;

    @Column(name="mh_description")
    private String description;

    @OneToMany(mappedBy = "hotel", fetch=FetchType.EAGER)
    private Set&lt;RoomEntity&gt; rooms = new HashSet&lt;&gt;(0);

    //getters and setters
 }
</code></pre>

<p>Find below DTO class</p>

<pre><code> public class RoomDTO{

    private String hotelName;
    private String code;
    private String type;

    //getters and setters
}
</code></pre>

<p>I written the below mapper code to copy data from RoomEntity to RoomDTO</p>

<pre><code>public class BeanMapper {

    private static MapperFactory mapperFactory = new   DefaultMapperFactory.Builder().build();

        public static RoomDTO toRoomDTO(RoomEntity roomEntity) {
        mapperFactory.classMap(RoomEntity.class, RoomDTO.class).field("hotel.name","hotelName").byDefault().register();
        MapperFacade mapper = mapperFactory.getMapperFacade();
        return mapper.map(roomEntity,RoomDTO.class);
    } 
}
</code></pre>

<p>The properties - code and type values are getting copied from RoomEntity to RoomDTO.<br> 
But the nested properties values(<strong>hotel.name -> hotelName</strong>) are not getting copied.<br>
Please help to resolve this issue. </p>