Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は教理を使います。主キーなしでテーブル (重要) を持つデータベースに基づくエンティティを生成することは可能ですか? DB は Chacal XXI (アプリケーション) 用で、1 つまたは 2 つのテーブルに主キーがありません。手動で主キーを追加できません。
いいえ。https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/basic-mapping.html#identifiers-primary-keysから:
すべてのエンティティ クラスには、識別子/主キーが必要です。@Id アノテーションで識別子となるフィールドを選択できます。