2013-08-28 62 views

回答

0
@ManyToOne 
    @Fetch(FetchMode.JOIN) 
    @JoinColumn(name="suppid",nullable=false,insertable=false,updatable=false) 
    private Supplier supplierDetails; 


    This will Join one table to another and fetch the record for you.This code should be inside Order table POJO. and getter setter of supplier details as well. 
相關問題