Doctrine 2 vs Hibernate: What are the differences?
Developers describe Doctrine 2 as "An object-relational mapper (ORM) for PHP 5.3.2+ that provides transparent persistence for PHP objects". Doctrine 2 sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. On the other hand, Hibernate is detailed as "Idiomatic persistence for Java and relational databases". Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
Doctrine 2 and Hibernate can be categorized as "Object Relational Mapper (ORM)" tools.
"Great abstraction, easy to use, good docs" is the primary reason why developers consider Doctrine 2 over the competitors, whereas "Easy ORM" was stated as the key factor in picking Hibernate.
According to the StackShare community, Hibernate has a broader approval, being mentioned in 87 company stacks & 74 developers stacks; compared to Doctrine 2, which is listed in 35 company stacks and 12 developer stacks.
What is Doctrine 2?
What is Hibernate?
Need advice about which tool to choose?Ask the StackShare community!
What are the cons of using Doctrine 2?
What are the cons of using Hibernate?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
Mybatis 로 쿼리를 만들고 조건분 분기식 for 문을 쿼리에 달아 더이상 쿼리를 알아 볼 수 없게 되었을때 이게 의마가 있나 싶었다. 그 때 한번 orm 을 써보면 어떨까 싶어 최근에 배우기 시작한 orm 이다. 정말 편하게 개발을 할 수 있는데 일조하고 있다. 다만 결국에 쿼리를 날려 맵핑을 하는데, 쿼리를 잘 모르거나 그에 대한 지식 없이 쓰다가는 망하겠구나 하는 생각이 많이 들었다.
We use a Clojure-powered wrapper around Hibernate to provide an ORM access to our data store for applications, as well as offering SSO integration and HIPAA logging functionality.
Can't escape from when you're on the Java stack and deal with relational db.
Strut や Spring など Java web app flame work での Object Relation Mapperとして