Using object-relational mapping frameworks