0

I used reverse engineering in myysqlworkbench to map entities. However, bugs occur in 1:1 identification mapping.

Bug: After one-to-one mapping, it works well until forward engineering (which also uses Synchronize Model)

But when I connect to EER Diagram through reverse engineering again, One-to-one mapping changes to one-to-n-mapping. (1: Parent / N : Child)

Here are the photos I captured.

  1. user : teacher @OneToOne identification mapping

one-to-one identification mapping

  1. forward Engeineering Success

enter image description here

  1. Reconnect EER Diagram to reverse Engineering

enter image description here

I tried setting up UQ on user_id (fk,pk) in the teacher table and applied the Synchronize Model, but it doesn't work.

Let me know what bug it is. Help me~

Jongwon
  • 31
  • 2
  • 7

1 Answers1

0

I think I got the answer from the articles linked below.

The conclusion seems to have been the limitation of the forward and reverse engineering structure of MySql Workbench.

1: after reverse Engineer MySQL Workbench change 1:1 relationship to 1:n

2: MySQL - One To One Relation?

Jongwon
  • 31
  • 2
  • 7