This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes 48 hour rule... Is it bussines rule or database rule? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "48 hour rule... Is it bussines rule or database rule?" Watch "48 hour rule... Is it bussines rule or database rule?" New topic
Author

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

Pavlo Rybakov
Greenhorn

Joined: May 31, 2010
Posts: 24
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
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

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.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 48 hour rule... Is it bussines rule or database rule?
 
Similar Threads
URLyBird : 48 hours rule enforced
URLyBird passed
48 hour rule
Valid Record Fields
Question on deadlock