[forge-issues] [JBoss JIRA] (FORGE-2194) Generated JAX-RS endpoing code from entities is wrong for primitive types
George Gastaldi (JIRA)
issues at jboss.org
Sun Jun 21 11:36:02 EDT 2015
[ https://issues.jboss.org/browse/FORGE-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed FORGE-2194.
----------------------------------
Fix Version/s: 2.17.0.Final
(was: 2.x Future)
Resolution: Done
> Generated JAX-RS endpoing code from entities is wrong for primitive types
> -------------------------------------------------------------------------
>
> Key: FORGE-2194
> URL: https://issues.jboss.org/browse/FORGE-2194
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Affects Versions: 2.13.0.Final
> Reporter: Marián Labuda
> Assignee: George Gastaldi
> Fix For: 2.17.0.Final
>
>
> I used forge to generate JAX-RS endpoints from Entities (those were created by reversed engineering from H2 database). Entity contains primitive long type for ID. In generated JAX-RS endpoint there is a method update which looks like this
> {code}public Response update(@PathParam("id") long id, ConferenceDTO dto){code}
> even though there is a primitive long ID as parameter, the method generate this code
> {code} (!id.equals(dto.getId())){code} which is wrong.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the forge-issues
mailing list