Original author: ottofoni...@gmail.com (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
Original author: ottofoni...@gmail.com (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