[forge-issues] [JBoss JIRA] (FORGE-837) RestPlugin supports only whole numbers as resource identifiers
George Gastaldi (JIRA)
issues at jboss.org
Mon Jun 30 11:18:25 EDT 2014
[ https://issues.jboss.org/browse/FORGE-837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-837:
----------------------------------
Fix Version/s: 2.x Future
(was: 1.x Future)
> RestPlugin supports only whole numbers as resource identifiers
> --------------------------------------------------------------
>
> Key: FORGE-837
> URL: https://issues.jboss.org/browse/FORGE-837
> Project: Forge
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Java EE
> Reporter: Vineet Reynolds
> Fix For: 2.x Future
>
>
> 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 was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the forge-issues
mailing list