Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • 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

URLyBird Book & Search?

 
Ranch Hand
Posts: 71
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The requirement of the assignment are to allow booking and searching for rooms. But in my application, I plan to filter records that date available has passed - meaning old records won't be shown in JTable. So, the question is, the accessors will not be able to book or search for records since the data in the .db file are older than today's date.

Is it ok? Or else, I would need to add a function to add new records so that the accessors would be able to test out new records.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Allan!

Champion, this isn't really necessary... just pull all records from the database and show them in the JTable. This isn't a requirement, so keep it simple and don't do it!
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Allan,

Like Roberto already mentioned: just implement the things that are required, no need to do extras (you won't receive extra points, in fact you may only lose points when it has a flaw for example).
Because I use a record cache I mentioned your approach (filtering old records when initializing the record cache in Data class) as a solution for handling memory issues when the size of the database file keeps increasing (in my choices.txt). But I didn't implement it (even the 48 hours rule I just ignored, a decision which was explained too in the decisions document).

Kind regards,
Roel

 
Allan Cheong
Ranch Hand
Posts: 71
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you that's what I thought the answer would be . But still seems a bit weird that the application would not be that useful if administration functions are not included. Anyway, I will only provide the book and search method, as required by the assignment.
 
Oh the stink of it! Smell my tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic