Inverse attribute informs the hibernate that the relation ship is Bi Directional
If we write inverse = “false” then hibernate understands that relationship as unidirectional and generates additional update operations on the database, so in order to reduce the internal operations, we need to include inverse=”true“
remember, default value of inverse =”false”
If we make inverse =”true” the performance will be increased
No comments:
Post a Comment