Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

48 hour rule... Is it bussines rule or database rule?

 
Pavlo Rybakov
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm again with 48-hour rule...
Is it bussines rule or database rule?

Theoretically it's a bussines rule, but than this means I have to transfer all reserved records from DB layer to Bussines layer and apply 48-rule filter there... What I would not like...
 
Roel De Nijs
Sheriff
Posts: 9838
103
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
certainly it is a business rule. in fact my Data class contains no reference to rooms what so ever. So it can easily be used to write customers or hotels to a similar database file. You could also decide not to implement this business rule.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic