From the course: Java Persistence with JPA and Hibernate

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

What is ORM?

What is ORM?

- [Instructor] Wherever there's a mismatch between two systems, there needs to be some kind of a conversion, or more specifically, a mapping that needs to be done. For instance, if you want to plug an electric appliance to a wall outlet, but you cannot connect them directly since their structures are incompatible, what would you do? So you need to use an adapter to be able to make them compatible. Object-relational mapping, or ORM, introduces a mapping layer whose job is quite similar to the adapter in the example that I just gave you. ORM tools or frameworks such as Hibernate, EclipseLink, and ETCetera, creates a bridge between an object-oriented model and the relational model. Their job is to automate the mapping process, allowing developers to work with objects in their object-oriented application side while seamlessly interacting with the underlying database tables. How does an ORM tool make this possible? Well, it creates a layer of abstraction between the object-oriented…

Contents