joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.22k stars 1.66k forks source link

How to disable the set method for one field? #1612

Open zjffdu opened 4 months ago

zjffdu commented 4 months ago

I have one field in my POJO with fixed value, and I don't want to expose the set method. Is there anyway to do that? Thanks