• 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
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
Ranch Hand
Posts: 1732
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!