Hibernate (Java) Question:

What does it mean to be inverse?

Hibernate Interview Question
Hibernate Interview Question

Answer:

It informs hibernate to ignore that end of the relationship. If the one–to–many was marked as inverse, hibernate would create a child–>parent relationship (child.getParent). If the one–to–many was marked as non–inverse then a child–>parent relationship would be created.


Previous QuestionNext Question
Define cascade and inverse option in one-many mapping?What do you mean by Named - SQL query?