Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • An addtionnal question how to avoid the création of two colmun one for ecran and for id_ecran Commented Sep 25, 2018 at 12:31
  • I don't know your exactly model. But you don't need to create two column in your EcramChamp table, just the field id_ecram. The id_ecram I supossed that was the name of the PK/FK in your table. EDIT: I have edit my answer for being more correctly. (@JoinColumn(name = "id_ecran") Commented Sep 25, 2018 at 12:39
  • Can i replace Embeddable element private Long id_ecran; by private Ecran id_ecran; ?!? Commented Sep 25, 2018 at 12:43