JPA Model Test

Kyle_Kim·2022년 7월 16일
0

In JPA the EntityManager is an interface that is associated with a persistence context.Here are a few important methods of EntityManager, em, which are used to perform the CRUD operations.

persist(): This method is used to persist a managed Entity.

remove(): This method is used to remove an Entity from the persistence context.

merge(): This method is used to save the current state of the Entity to the persistence context.

find(): This method is used to load an Entity based on its primary key.

profile
꾸준함.

0개의 댓글