Re: [jackson-user] object mapper is not serializing AtomicLong

2018-12-31 Thread MV
Hi Tatu Thanks a lot for the quick response. After your response, I checked my getID() method. It was declared *static *because the ID field AtomicLong is declared as a static field. Taking the 'static' out of the method signature seems to fix the issue and I can now see the ID field in my outp

Re: [jackson-user] object mapper is not serializing AtomicLong

2018-12-29 Thread Tatu Saloranta
On Sat, Dec 29, 2018 at 3:01 PM MV wrote: > > Hi There > > I have ID's in my POJO objects using AtomicLong for auto generation of ID's > in a thread safe environment. I use > ObjectMapper.writeWithPrettyWriter().writeValueAsString(pojo). > I notice in the output that the fields marked as AtomicL

[jackson-user] object mapper is not serializing AtomicLong

2018-12-29 Thread MV
Hi There I have ID's in my POJO objects using AtomicLong for auto generation of ID's in a thread safe environment. I use ObjectMapper.writeWithPrettyWriter().writeValueAsString(pojo). I notice in the output that the fields marked as AtomicLong are not written out. I apologize for the wrong met