JAX-RS and long int


Please excuse me if this has already been asked. I am going from raml file to jax-rs classes have some problems expressing long int within schema section of raml file. If I use integer in raml then methods in model classes contain variables of type int, and if I use number I get Double in generated classes. How can I get generator to produce Long type?


Are you talking about JSON Schema that RAML2JAXRS turns in to POJO classes? If so, there may be optional configuration that you can pass to force it to use long instead of int, but I havent done this myself. I did a quick lookup and it seems there was some discussion about this some time back.