You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From joelittl...@gmail.com on July 08, 2012 18:18:02
If you have the super class on the classpath you should be able to achieve javaSuper using the existing 'extends' keyword like this:
From joelittl...@gmail.com on October 21, 2012 20:24:39
Changing the scope of this based on the fact that super type can already be accommodated via the 'extends' schema keyword.
From joelittl...@gmail.com on June 19, 2013 23:51:11
Fixed for 0.3.7. There is now a new extension property "javaInterfaces" that takes an array of strings, where each string is the fully qualified name of a Java interface. The generated type will implement those interfaces.
Hi! Does this feature exist in the maven-plugin? I cannot seem to find it here.
EDIT: Sorry to bother. I found it here. I did not know that I would need to edit the schema because I was expecting it to be a configuration. I am not complaining was just looking in the wrong place I guess.
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
The text was updated successfully, but these errors were encountered: