Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the best selection of KEY

 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not specified what the primary key of the DB file.

Is it safe to assume that "hotel/city" is safe to assume, i.e. one specific hotel cannot have more than one room listed.

What is the best selection of KEY.


Also for the UI, do we need to provide a screen (Jframe or JWindow) so that one can create records.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11944
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aruneesh,

You might want to consider whether it is necessary for you to find a primary key. That is - even though there is an exception declared that indicates that there might be a primary key, the current data might not be suited to having a primary key. In which case you could simply leave the exception defined but never throw it in your code - just leave it for future enhancements .

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic