JDBC usage examples as part of object-relational mapping classes