• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
Ranch Foreman
Posts: 1897
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.
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic