JPA insert statement

后端 未结 5 801
不思量自难忘°
不思量自难忘° 2020-12-16 09:48

What\'s the correct syntax of a JPA insert statement? This might sound like an easy question but I haven\'t been able to find an answer.

I know how to do it from Jav

5条回答
  •  忘掉有多难
    2020-12-16 10:22

    There is no INSERT statement in JPA. You have to insert new entities using an EntityManager. The only statements allowed in JPA are SELECT, UPDATE and DELETE.

提交回复
热议问题