The Java Persistence entity Lineltem defines a composite primary key that is defined by the two
columns ORDERID and LINEITEMID in the database. Which two are true? (Choose two.
A.
Lineltem must define a primary key class to represent the composite primary key.
B.
The composite primary key is mapped as two fields in Lineltem. No extra primary key class is
necessary.
C.
The combination of©Embedded and @Embeddable annotations can be used to denote the
composite primary key.
D.
The semantics of the equals and hashCode methods of the primary key class must be
consistent with the database equality.