posted 15 years ago
Hi Stefan,
My implementation of the search requirements:
2 text fields (one for hotel name, one for location)if you leave both fields empty and click the search-button, all valid (not deleted) records are shown in the JTableno implementation of the 48 hours rule
If the database grows and grows, this approach is indeed not that efficient: a lot of redundant records will be loaded into your table. I used a record cache, so if the database is really huge I'll ran into memory problems. I addressed that in my choices.txt and one of the solutions I suggested was implementing the 48 hours rule (only loading the records in cache with an available night within 48 hours).
So I think you'll be fine with your implementation/approach, certainly if you mention something about it in your decision document.
Kind regards,
Roel