DAO与休眠之间的关系 [英] Relationship between DAO and hibernate

查看:85
本文介绍了DAO与休眠之间的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着谷歌答案,但我仍然对他们的关系感到困惑。

我推测Hibernate是一种DAO。



我在维基百科中查找了 DAO

但是发现那里没有与hibernate相关的东西。



那么两者之间的关系到底是什么?



一些例子会很棒!

解决方案

DAO是一个通常具有类似CRUD操作的类保存,更新,删除Hibernate是Java语言的对象关系映射(ORM)库,提供了一个框架,用于将面向对象的域模型映射到传统的关系数据库。所以它有助于更​​好地处理DAO操作方式。

I tried to google the answer, but I am still puzzled about their relationship.
I speculate Hibernate is a kind of DAO.

And I looked up DAO in Wikipedia,
But found there is nothing related with hibernate there.

So what exactly is the relationship between the two?

Some examples will be great!

解决方案

DAO is a class that usually has the CRUD operations like save, update, delete where as Hibernate is an object-relational mapping (ORM) library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database.So it helps to handle the DAO operation with better way.


这篇关于DAO与休眠之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆