Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
Description
The RestPlugin contains the following @Path annotation:
@Path("/{id:[0-9][0-9]*}")
irrespective of the type of the JPA Entity @Id field.
Even among the basic @Id types deemed supported by the Rest plugin, having any of the decimal types like float and double, or String, as the type of the @Id field in the JPA entity would result in generation of an incorrect REST resource.
The regex should preferably be context-sensitive and contain a different regex for different @Id types, or be omitted altogether.
Attachments
Issue Links
- is related to
-
FORGE-823 The REST plugin should generate resources for entities with non-basic Id types
- Open