Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9183153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:44:02+00:00 2026-06-17T18:44:02+00:00

I have been puzzled by this for a while now. My question is, how

  • 0

I have been puzzled by this for a while now. My question is, how does object-oriented programming and database management work together? I can’t seem to find much on how the two work together. I wanted to make a database driven application and I currently have a good book on object oriented programming that has a process for creating applications using object-oriented methodologies but I just get confused when we start involving databases.

Is a class diagram essentially a database design? Can we still query the database with SQL just like we do with relational databases? How is the data file stored and in what format? Are classes the equivalent to tables and their attributes equivalent to columns?

Thanks in advance I appreciate any responses and I did try google and the similar questions offered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:44:03+00:00Added an answer on June 17, 2026 at 6:44 pm

    It seems like you’re coming up against the Object Relational Impedence Mismatch.

    Is a class diagram essentially a database design?

    No it isn’t, the database model and your OO model may well be very different.

    Can we still query the database with SQL just like we do with
    relational databases?

    Yes you can, but you’ll change the data into objects, see the Repository Pattern on how to do that.

    How is the data file stored and in what format?

    The same way and format RDBSs have been storing data for decades, I won’t muddy the water by suggesting you look at the growing popularity of NoSQL systems.

    Are classes the equivalent to tables and their attributes equivalent
    to columns?

    Not necessarily, you’ll be mapping the data in tables to objects in an OO design. Sometimes they might map almost directly. You might also, for example, have the data in 3 tables mapped to one object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been working on this question for a couple hours and have come close
I noticed prior to posting this question that there have been similar questions posted
I have been puzzled by this weird problem and it got me stuck. Please
I've been puzzled by this for a while. I am writing quite a large
I have been really puzzled because I was trying to work out some jQuery
I've been a little puzzled with this as I have not seen many examples
To Opa Folks out there, I have been puzzled by this issue all of
for some reason this hasn't been inserting into the database. I'm puzzled. It runs
I have been working with SQL Server as a Developer a while. One thing
I've been researching working with PDFs in my iOS app for a while now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.