Why is this JPA 2.0 mapping giving me an error in Eclipse/JBoss Tools?

后端 未结 3 666
盖世英雄少女心
盖世英雄少女心 2021-01-23 04:02

I have the following situation:
(source: kawoolutions.com)

JPA 2.0 mappings (It might probably suffice to consider only the Zip and ZipId class

3条回答
  •  梦毁少年i
    2021-01-23 04:04

    I'd say focus your attention on the CompoundIdentity relationship. See this question, and my answer there Help Mapping a Composite Foreign Key in JPA 2.0

    ZipId has no "country" field in your case

提交回复
热议问题