Aliaksei
Aliaksei

Reputation: 1457

QueryDSL JPA Insert

How to insert row in table using

<dependency>
    <groupId>com.querydsl</groupId>
    <artifactId>querydsl-jpa</artifactId>
</dependency>

For update I found JPAUpdateClause For delete I found JPADeleteClause

But how to insert row?

Upvotes: 4

Views: 3312

Answers (2)

Chris
Chris

Reputation: 5643

Since may 2020 QueryDsl JPA now support insert statements.

See this pull request, that was merged on may 28th: https://github.com/querydsl/querydsl/pull/2421

Upvotes: 3

Eugene
Eugene

Reputation: 120858

QueryDSL only supposer the DELETE and UPDATE - you will have to use the Hibernate or JPA to insert your entities.

Upvotes: 4

Related Questions