@@ -94,12 +94,12 @@ To execute a SELECT query and retrieve Java object results, follow this example:
9494
9595 public Employee selectById(Integer id) {
9696 var e = new Employee_ ();
97- return entityql . from(e). where(c - > c. eq(e. id, id)). fetchOne();
97+ return queryDsl . from(e). where(c - > c. eq(e. id, id)). fetchOne();
9898 }
9999
100100 You'll use a metamodel class, like ``Employee_ `` for ``Employee ``, which is auto-generated through annotation processing.
101101
102- The ``entityql `` instance from the ``Entityql `` class serves as the Criteria API's starting point.
102+ The ``queryDsl `` instance from the ``QueryDsl `` class serves as the Criteria API's starting point.
103103
104104The above code generates the following SQL statement:
105105
@@ -116,7 +116,7 @@ To issue a DELETE statement, write as follows:
116116
117117 public void delete(Employee employee) {
118118 var e = new Employee_ ();
119- entityql . delete(e, employee). execute();
119+ queryDsl . delete(e) . single( employee). execute();
120120 }
121121
122122 INSERT
@@ -128,7 +128,7 @@ To issue an INSERT statement, write as follows:
128128
129129 public void insert(Employee employee) {
130130 var e = new Employee_ ();
131- entityql . insert(e, employee). execute();
131+ queryDsl . insert(e) . single( employee). execute();
132132 }
133133
134134 UPDATE
@@ -140,7 +140,7 @@ To issue an UPDATE statement, write as follows:
140140
141141 public void update(Employee employee) {
142142 var e = new Employee_ ();
143- entityql . update(e, employee). execute();
143+ queryDsl . update(e) . single( employee). execute();
144144 }
145145
146146 DAO style
0 commit comments