setting serializableModel to true to implement serilizable for modal classes not working

Open
#603 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by reproducing the generator with the supplied config JSON and inspect the generated model classes to confirm whether serializableModel is being recognized. Trace the configuration and model-generation path, then verify that the affected classes implement Serializable when generation completes.

Written by the indexing model from the issue text.

Description

In the config Json, I added serializableModel: true but still classes are not generating with implement serializable. Is there any additional setting need to be done to have all classes implement Serializable interface.

{
  "name": "hello",
  "version": "0.1.0",
  "groupId": "com.hello",
  "artifactId": "0.1.0",
  "rootPackage": "com.networknt.eventuate.account.command",
  "handlerPackage":"com.networknt.eventuate.account.command.handler",
  "modelPackage":"com.hello",
  "serializableModel": true,
  "overwriteHandler": true,
  "overwriteHandlerTest": true,
  "overwriteModel": true,
  "httpPort": 8080,
  "enableHttp": false,
  "httpsPort": 8443,
  "enableHttps": false,
  "enableRegistry": false,
  "supportOracle": false,
  "supportMysql": false,
  "supportPostgresql": false,
  "supportH2ForTest": false,
  "supportClient": false
}
Dominant language
Java
Stars
49
Forks
25
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from networknt/light-codegen

All issues in networknt/light-codegen

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.