Ask Your Question
2

What is the connection between Java Domain and DAO Mapper?

asked 2022-01-11 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-18 12:00:00 +0000

huitzilopochtli gravatar image

There is no direct connection between a Java Domain and a DAO Mapper.

A Java Domain is a set of classes that represent the application's data model, which encapsulates the application logic and the data it operates on.

On the other hand, a DAO Mapper (Data Access Object Mapper) is a design pattern that provides a layer of abstraction between the application logic and the database. It typically uses CRUD (Create, Read, Update, and Delete) operations to manage the persistence of data.

In an application, the DAO Mapper interacts with the database and returns the data in the form of Java objects, which represents the domain model. These objects can be manipulated by the application logic to perform business operations.

Therefore, the connection between Java Domain and DAO Mapper is indirect, as the DAO Mapper helps in mapping the data from the database to the Java objects that represent the domain model.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-11 11:00:00 +0000

Seen: 8 times

Last updated: Nov 18 '21