When you’re modelling a domain, it makes sense to provide properties and methods on your domain objects to encapsulate domain logic. Most modern object relational mappers, including LightSpeed, support rich domain models that expose these additional properties and methods. The trouble with this approach is that it doesn’t play nicely with querying. Users of the domain model need to know which properties and methods are part of the persistence model and which are not. This post talks about how the latest releases of LightSpeed help developers overcome this challenge to make querying easier.