java - Not having a getter method in POJO does not set the values via setter method -


i using org.json library json parsing. have experienced when have 2 methods getname() , setname() , if comment getter method in pojo class, setter method not work .

but if don't, works. why happens? can't set value in pojo , convert json string?

can't set value in pojo , convert json string?

if comment out getter method, json library no longer serialize property, because has no way property.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -