title: Where is the line between DAL and ORM?
body: <p>The terms are often thrown around interchangeably, and there's clearly considerable overlap, but just as often it seems implied that people see something strongly implied by saying that a system is an ORM that isn't implied by it being a DAL.  What is that?  What, if any, are the key points that differentiate these types of system?</p>
  
  <p>For example, let's say I have some code that implements Database, Table, Column and Row classes, populating them by automatic analysis of an existing database, allowing simplified interaction and so on.  It understands, enforces, and takes advantage of structural relationships between database entities, such as foreign keys.  All the entity models can be subclassed to load table-specific functionality onto them.</p>
  
  <p>To what extent is this a DAL?  To what extent is it an ORM?  Why?</p>