[JBoss JIRA] (FORGE-837) RestPlugin supports only whole numbers as resource identifiers
by Vineet Reynolds (JIRA)
Vineet Reynolds created FORGE-837:
-------------------------------------
Summary: RestPlugin supports only whole numbers as resource identifiers
Key: FORGE-837
URL: https://issues.jboss.org/browse/FORGE-837
Project: Forge
Issue Type: Bug
Reporter: Vineet Reynolds
The RestPlugin contains the following {{@Path}} annotation:
{code}
@Path("/{id:[0-9][0-9]*}")
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months