姬長信(Redy)

何时在休眠状态下使用property-ref属性


我已经完成了示例程序.我使用了property-ref属性.即使我不使用它仍然可以正常工作.请让我知道此程序中property-ref属性的实际用法.

 
 
    
        
    
    
    
    

                 
   
  

  
  
    
        
    
    
      

   
        
    
  

   public class Book {
   private long id;
   private String title;
   private String description;
   private Date publishedDate;
   private Author author;       
   }
  public class Author {
  private long id;
  private String name;
  private String email;
  private Book book;     {
  }