hibernate composite key

前端 未结 3 1412
心在旅途
心在旅途 2020-11-30 03:35

Is it necessary that composite-id should be mapped to class ??

can it be like this ?


  
  

        
3条回答
  •  無奈伤痛
    2020-11-30 04:04

    If you have a composite key that contains relationships to other entities, do it like this:

    
        
        
    
    

提交回复
热议问题