次の質問の答えが B なのはなぜですか?
私の見解では、答えはCであるべきです。
開発者は、次のエンティティ クラス オフィスを定義しました。
@Entity
Public class Office {
@Id
Private int Id;
Private String name;
@OneToMany
Private List<Rooms> rooms;
}
次の属性のうち、「部屋」フィールドに対応して生成された静的メタモデル クラスに含まれるのはどれですか?
- A. public static volatile CollectionAttribute ルーム。
- B. Public static volatile ListAttribute <Room> 部屋。実際の答え
- C. Public static volatile ListAttribute <Office, Room> 部屋。私の選択 - 間違い
- D. Public static volatile SingleAttribute ルーム。