-
Bug
-
Resolution: Done
-
Critical
-
1.3.3.Final
-
None
This is from the Sakila-h2 model and happens occasionally in this model depending on JPA field order in the Staff class, but could be more frequent in other models.
The scaffold generator is unable to distinguish between array types and corresponding primitive types, thus resulting in code that is syntactically invalid, like:
byte picture = this.example.getPicture(); if (picture != 0) { predicatesList.add(builder.equal(root.get("picture"), picture)); }
where the picture field in the JPA entity is of type byte[].
This also seems related to FORGE-918 where information about array-types is lost.
- is blocked by
-
FORGE-1026 JavaParser fails to identify types of ArrayType in method return types
-
- Closed
-
- relates to
-
JBDS-2735 Ensure the Forge 1 wizards work well
-
- Closed
-