2013-05-29 3 views

ответ

1

Вы можете указать объединение параметров столбцов с referencedColumnName, увидеть association mapping document

id: 
    type: integer 
    id: true 
    generator: 
     strategy: AUTO 
ms_id: 
    type: string 
    unique: true 
oneToOne: 
    parent: 
     targetEntity: Category 
     joinColumn: 
      name: category_id 
      referencedColumnName: ms_id 
     nullable: true 
+0

Спасибо ... Я пытался это сделать, но его требуется падение и Crea te db вначале. – nkt

Смежные вопросы