从DSL雕刻家生成类Java

时间:2018-09-10 17:28:32

标签: java dsl

请问如何从dsl雕刻家生成场,如下所示:

public class MyClass {

    @Column(name = "MY_FIELD_1", required length=13)
    private String myField1;
    @Column(name = "MY_FIELD_2")
    @Size(min = 13, max = 13)
     private String myField2;
}

我的dsl如下:

DataTransferObject MyClass  {
            hint="..."
            String myField1 required;
            String myField2 required;
}

感谢前进。

0 个答案:

没有答案