Hacker News new | past | comments | ask | show | jobs | submit login

Speed is not the only concern when it comes to JDBC vs ORM (JPA/Hibernate).

The more complex the data model, the more one needs to know the inner working of JPA. I've shared my struggle understanding how JPA works even for a medium-level complexity of the JPA entities.

Some of the problems I've encountered using JPA:

- The whole EntityManager act as L1 cache occasionally tripped me when writing Integration-Tests

- The relationship direction (owning, etc) can be confusing to learn

- Reference vs Lazy vs Eager load

Having said that, HBM2DDL is a nice tool that can work as maven plugin such that changes on the JPA entities can resulted the DDL to be updated properly thus maintaining consistency between Java Data Model and the DB schema.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: