Hibernate Join using criteria and restrictions
===

I have 2 entities as

**PayoutHeader.java**

    @Entity
    public class PayoutHeader extends GenericDomain implements Serializable {
    
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;        
        @Column
        private Integer month;
        @Column
        private Integer year;
        @OneToOne
        private Bank bank;
        @Column
        private Double tdsPercentage;
        @Temporal(javax.persistence.TemporalType.DATE)
        private Date **chequeIssuedDate**;
    
        @Temporal(javax.persistence.TemporalType.DATE)
        private Date entryDate;
    
    }

**PayoutDetails .java**

    @Entity
    public class PayoutDetails {
        @Column
        private String bankName;
        @Temporal(javax.persistence.TemporalType.DATE)
        private Date clearingDate;
        @OneToOne    
        private Advisor advisor;
    
        @Column
        private Long **advisorId**;
    }


I want to write query using Hibernate Criteria like

    Select pd.* from PayoutDetails pd, PayoutHeader ph where pd.payoutheaderId = ph.id and pd.advisorId = 1 and and ph.chequeIssuedDate BETWEEN STR_TO_DATE('01-01-2011', '%d-%m-%Y') AND STR_TO_DATE('31-12-2011', '%d-%m-%Y') ";

I have written query like this

    public List<PayoutDetails> getPayoutDetails(AdvisorReportForm advisorReportForm) {
            Criteria criteria = getSession().createCriteria(PayoutDetails.class);
            
            if (advisorReportForm.getAdvisorId() != null && advisorReportForm.getAdvisorId() > 0) {
                criteria.add(Restrictions.eq("advisorId", advisorReportForm.getAdvisorId().toString()));
            }
    
            criteria.setFetchMode("PayoutHeader", FetchMode.JOIN)
                    .add(Restrictions.between("chequeIssuedDate", advisorReportForm.getFromDate(), advisorReportForm.getToDate()));        
    
            return criteria.list();
        }

But is giving error as 

org.hibernate.QueryException: could not resolve property: chequeIssuedDate of: org.commission.domain.payout.PayoutDetails

I think is is trying to find chequeIssuedDate field in PayoutDetails, but this field is in PayoutHeader. How to specify alias during join ?
