title: Is it a good idea to create an interface for each domain objects?
body: <p>I was just looking into the source code of an existing project which uses <strong>nHibernate</strong> and found that there are interfaces created for each entity classes. E.g <strong>ICustomer</strong> for <strong>Customer</strong> class. I was just wondering what can be the advantage of this pattern as <strong>ICustomer</strong> contains mainly the properties and very few methods.</p>