File tree Expand file tree Collapse file tree
querydsl-tooling/querydsl-jpa-codegen/src/test/java/com/querydsl/jpa/codegen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ public void test() throws IOException {
6969 var origFile = origRoot .toPath ().resolve (relativeFile );
7070 var reference = new String (Files .readAllBytes (origFile ), StandardCharsets .UTF_8 );
7171 var content = new String (Files .readAllBytes (file .toPath ()), StandardCharsets .UTF_8 );
72+
73+ if (file .getName ().equals ("QCalendar.java" )) {
74+ // The APT processor does not apply @Temporal(TemporalType.DATE) to @ElementCollection
75+ // map values, so it generates DateTimePath for java.util.Date. The JPADomainExporter
76+ // correctly reads @Temporal from the Hibernate metamodel and generates DatePath.
77+ // Hibernate 7.3+ fixed metamodel exposure of @Temporal for map attributes.
78+ reference = reference .replace ("DateTimePath" , "DatePath" );
79+ }
80+
7281 assertThat (content ).as ("Mismatch for " + file .getName () + "\n " ).isEqualTo (reference );
7382 }
7483}
You can’t perform that action at this time.
0 commit comments