I'm creating a pretty simple database driven application. Whenever I create a db app, I create classes that mimic the data in the db. Is this good practice?Am I better off making one big call to the database and populating my objects and working with these objects, or should I retrieve data from the db only when needed?
Constant database calls or store in objects?
database development;object oriented design
Is this good practice?It's called Object-Relational Mapping.  ORM.  It's done all the time.  Am I better off making one big call to the database and populating my objects and working with these objects, or should I retrieve data from the db only when needed?That's imponderable.  First, you haven't defined better.  Second, it depends on the volatility of the data in the database, the nature of your application, and the performance of your ORM layer.