File tree Expand file tree Collapse file tree
src/main/java/org/baeldung/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 <artifactId >querydsl-mongodb</artifactId >
7272 <version >${querydsl.version} </version >
7373 </dependency >
74+ <dependency >
75+ <groupId >com.mysema.querydsl</groupId >
76+ <artifactId >querydsl-apt</artifactId >
77+ <version >3.6.6</version >
78+ </dependency >
7479
7580 </dependencies >
7681
7782 <build >
7883 <plugins >
7984 <plugin >
80- <artifactId >maven-compiler-plugin</artifactId >
81- <version >2.3.2</version >
82- <configuration >
83- <source >1.8</source >
84- <target >1.8</target >
85- </configuration >
85+ <groupId >com.mysema.maven</groupId >
86+ <artifactId >apt-maven-plugin</artifactId >
87+ <version >1.1.3</version >
88+ <executions >
89+ <execution >
90+ <goals >
91+ <goal >process</goal >
92+ </goals >
93+ <configuration >
94+ <outputDirectory >target/generated-sources/java</outputDirectory >
95+ <processor >org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor</processor >
96+ </configuration >
97+ </execution >
98+ </executions >
8699 </plugin >
87100 </plugins >
88101 </build >
Load diff This file was deleted.
Original file line number Diff line number Diff line change 33import org .springframework .data .annotation .Id ;
44import org .springframework .data .mongodb .core .mapping .Document ;
55
6+ import com .mysema .query .annotations .QueryEntity ;
7+
8+ @ QueryEntity
69@ Document
710public class User {
811
You can’t perform that action at this time.
0 commit comments