]
Marián Labuda updated FORGE-2194:
---------------------------------
Component/s: Java EE
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
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.