|
|
|
|
|
by ThinkBeat
4022 days ago
|
|
This might be the case if you have one and only one application interacting with the database, and your unit tests include each and every permutation/edge case. It is very common to have many applications, from different vendors and from different time periods interacting with a database. It often also happens that data can be modified directly in the database, not via the application. I agree this is not best practice but in larger enterprises it happens. Once you start implementing foreign keys in the client you are adding a lot of complexity to a problem that most mature relational database system do well enough to be trusted by a lot of traditional financial institutions. |
|