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

  • Home
  • SEARCH
  • 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 6706585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:32:16+00:00 2026-05-26T07:32:16+00:00

I am trying to create a database that can be used to store lots

  • 0

I am trying to create a database that can be used to store lots of objects. I was trying to do this with a relational database however it seems to be a bit of a beast. I mean take the simple object below

Object = {
   "Type":"Car",
   "Color":"Green",
   "Doors":3,
   Wheels:{
       "Material":"Alloy",
       "Size":17,
       "Color":"Black",
       "Tyres":{
          "Profile":"Low",
          "Material":"Rubber"
          "Tread":"Slick"
       }
   },
   Seats:{
       "Number":2,
       "Seatbelts":true
   }
}

From these you could picture a 3 door green car, with black 17inch alloy wheels, low profile, slick rubber tyres, 2 seats with seatbelts. Obviously, this whole object is not set in stone, you could go and then expand upon things

(eg.

Seatbelt:{
    "Type":"Harness",
    "Buckles":1,
    "Color":"Blue"
}

)

Eventually, assuming there are a lot of objects, I would want to return a list of objects that have these characteristics

{
"Type":"Car"
"Doors":3
}

From this I may get a list of 5 cars back that have 3 doors but have various other attributes, it doesn’t matter, I haven’t specified these criteria. I could narrow it down further, looking for all 3 door cars with slick tyres… I might get back 2

{
   "Type":"Car"
   "Doors":3
   "Wheels":{
      "Tyres":{
         "Tread":"Slick"
      }
   }
}

So I was thinking a database having 3 main tables: objects, attributes and values. Then having linking tables, linking objects to attributes, attributes to values. However, what if, like in the example I have objects containing objects, and also if I plan on having an object of car which the example could be an extension of?

How do we deal with this type of database problem? Can it be done with a relational database or do I need an object oriented one? If so, are there any OODBs that I can implement with a website as easily as I can MySQL.

If you can use a RDB to do this, then queries, surely they would be very resource intensive? How about OODBs? As resource intensive?

How can I make a Object Oriented DB for a website? using RDB or OODB, I don’t mind, it’s just how

  • 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-05-26T07:32:16+00:00Added an answer on May 26, 2026 at 7:32 am

    I would take a look at hibernate (for Java) or nhibernate (for .net). http://www.hibernate.org

    Hibernate provides ORM (Object Relational Mapping) for relational databases (like MySql)

    Another solution (which I personally don’t like) for small amounts of data are xml files, you can then parse the data with xpath expressions. http://www.w3schools.com/xpath

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

Sidebar

Related Questions

I'm trying to create a simple button that deletes a row from the database.
I am trying to create new Event objects to be persisted in the database
I am trying to generate an NSDictonary that can be used to populate a
We are porting an old application that used a hierarchical database to a relational
I have 2 tables in my database that I'm trying to create Linq2Sql entities
I'm trying to reindex a table in a simple database that I created using
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
im trying to create a database for a feedback application in ASP.net i have
I'm trying to create a Database object for myself in .net. The constructor takes
I am trying to create a database deadlock and I am using JUnit. I

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.