Databases are important for every project, so software isn’t an exception, DB help us create an space where we can keep all the information needed in the implementation of the project.
Now, we know how to plan a project, how to represent and model it, but if we want to create spaces for information that will help us later, how can we create them and translate them to tables in a DB?
First we need to take our classes in UML and determine the data we need for each one of them, once we know what we want, we will need to start asking questions about DB creation.
Use the preferred tools for DB and start creating tables for each class and make sure each one has the rows and columns for the information, also check the data types of every space in it.
Let’s talk about mapping now, what is it? Agiledata says “it is the act of determining how objects and their relationships are persisted in permanent data storage, in this case relational databases”.
As we said before, when learning how to map objects to relational databases the place to start is with the data attributes of a class. An attribute will map to zero or more columns in a relational database.
Here’s an example of mapping:
Now we can learn about it with a video:
Thanks for learning with us, keep it going.