Skip to content

Add extension to force generated classes to implement additional interface(s)  #60

@joelittlejohn

Description

@joelittlejohn

Original author: [email protected] (July 08, 2012 11:47:30)

It may be convenient to ask generator to place super class (or interface) reference into generated DTO, for instance

Schema
{
...
"javaType":"model.json.Buffer",
"javaSuper":"model.AbstractModel",
"javaInterfaces": ["java.io.Serializable","api.CustomContract"],
"properties":{
"id":{
"type":"integer",
"id":"id"
},
"title":{
"type":"string",
"id":"title"
}
...
"type":"object"
}

Generated
...
public class Buffer extends AbtractModel implements Serializable, CustomContract {
private int id;
private String title;
...

It may also generate stub implementations of interface methods automatically if any.

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=60

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions