Buscar

Considering the object-relational mapping for the Product class, which annotation should be used to represent a many-to-one relationship? The @One...

Considering the object-relational mapping for the Product class, which annotation should be used to represent a many-to-one relationship?

The @OneToOne annotation should be used to represent a many-to-one relationship.
The @OneToMany annotation should be used to represent a many-to-one relationship.
The @ManyToOne annotation should be used to represent a many-to-one relationship.
The @ManyToMany annotation should be used to represent a many-to-one relationship.
a) The first statement is correct.
b) The second statement is correct.
c) The third statement is correct.
d) The fourth statement is correct.

Essa pergunta também está no material:

Aula 3 - Texto
25 pág.

Linguagem de Programação Java Centro Universitário UNINTERCentro Universitário UNINTER

Respostas

User badge image

Ed Verified user icon

A alternativa correta é a letra C) A anotação @ManyToOne deve ser usada para representar um relacionamento muitos-para-um.

0
Dislike0

Responda

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Continue navegando