Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

My exam cloud mock exam 1 about Customer and Address vs AUCTION and Item

 
Ranch Hand
Posts: 1742
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think  this question in mock exam 1 needs to be fixed:



@Entity Customer{

@Id int id;
@OneToOne Address address;
}
@Entity Address{
@Id int id;
@OneToOne(mappedy="address")
Customer customer;
}

Given that the Customer entity maps to an Customer database table and Address entity maps to an ADDRESS database table, which statement is correct assuming there is NO mapping descriptor?

A. The relationship is mapped to a foreign key in the ITEM table.
B. The relationship is mapped using a join table AUCTION_ITEM.
C. The relationship is mapped to a foreign key in the AUCTION table.
D. The relationship is mapped to foreign keys in both ITEM and AUCTION tables.




The options do not have any Address and Customer table.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!