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 6327077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:12:50+00:00 2026-05-24T17:12:50+00:00

I know that Hibernate implements ORM (Object Relational Mapping), what type of mapping does

  • 0

I know that Hibernate implements ORM (Object Relational Mapping), what type of mapping does JDBC implement? Does it implement DAO? I don’t totally understand how/if DAO is related to JDBC…?

  • 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-24T17:12:51+00:00Added an answer on May 24, 2026 at 5:12 pm

    DAO isn’t a mapping. DAO stands for Data Access Object. It look something like this:

    public interface UserDAO {
    
        public User find(Long id) throws DAOException;
    
        public void save(User user) throws DAOException;
    
        public void delete(User user) throws DAOException;
    
        // ...
    }
    

    For DAO, JDBC is just an implementation detail.

    public class UserDAOJDBC implements UserDAO {
    
        public User find(Long id) throws DAOException {
            // Write JDBC code here to return User by id.
        }
    
        // ...
    }
    

    Hibernate could be another one.

    public class UserDAOHibernate implements UserDAO {
    
        public User find(Long id) throws DAOException {
            // Write Hibernate code here to return User by id.
        }
    
        // ...
    }
    

    JPA could be another one (in case you’re migrating an existing legacy app to JPA; for new apps, it would be a bit weird as JPA is by itself actually the DAO, with e.g. Hibernate and EclipseLink as available implementations).

    public class UserDAOJPA implements UserDAO {
    
        public User find(Long id) throws DAOException {
            // Write JPA code here to return User by id.
        }
    
        // ...
    }
    

    It allows you for switching of UserDAO implementation without changing the business code which is using the DAO (only if you’re properly coding against the interface, of course).

    For JDBC you’ll only need to write a lot of lines to find/save/delete the desired information while with Hibernate it’s a matter of only a few lines. Hiberenate as being an ORM takes exactly that nasty JDBC work from your hands, regardless of whether you’re using a DAO or not.

    See also:

    • I found JPA, or alike, don't encourage DAO pattern
    • JSF Controller, Service and DAO
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that the session is used for the database in Hibernate, but what
Does nHibernate create code that has all the details of the column? I know
I was always sure (don't know why) that it's better to add annotations to
Jackson is throwing a weird exception that I don't know how to fix. I'm
I know that JPA implementors (like Hibernate) monitor the entities attached to the persistence
I know that I can do something like $int = (int)99; //(int) has a
I know that default cron's behavior is to send normal and error output to
I know that you can insert multiple rows at once, is there a way
I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is
I know that the MsNLB can be configured to user mulitcast with IGMP. However,

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.