Replies: 4 comments 1 reply
-
|
Would you expect this to be specific for Next question would be if it would be a global setting, i.e. it would add add it to all DTOs, or a "by model" setting (which would need a way to configure it)? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for responding. More generic solution would be nice. Also ability to apply them on per api basis would be nice. Here's an example how I am envisioning it. Should be applied to pojos and records. In this example, pojos under /api/test should implement all three interfaces and others should implement InterfaceA. |
Beta Was this translation helpful? Give feedback.
-
|
just listing the interfaces will not work, because it gives no control over the types that should implement the interface. I think something like this map:
types:
# the generated model/dto for "Foo" should implement java.io.Serializable
- type: Foo <= java.io.Serializable
# let all generated model/dtos implement java.io.Serializable
- type: object <= java.io.Serializablewould fit better, beeing more similar to the existing configuration. I'm not satisfied with the
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It will be nice to have capability to generate Models with super classes and implementing interfaces. Most common use case is Seriablizable.
public Foo implements java.io.Serializable{
}
Beta Was this translation helpful? Give feedback.
All reactions