diff --git a/CodeTemplate/java-bean-lombok.dot b/CodeTemplate/java-bean-lombok.dot new file mode 100644 index 0000000000000000000000000000000000000000..df44d9b722256190b22b639669add5bd04a38e95 --- /dev/null +++ b/CodeTemplate/java-bean-lombok.dot @@ -0,0 +1,31 @@ +package cn.com.chiner.entity; +$blankline +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; +import lombok.Data; +$blankline +{{ + var today=new Date(); + var fullYear=today.getFullYear(); + var month=today.getMonth() + 1; + var days=today.getDate(); +}} + /** + * @author : http://www.chiner.pro + * @date : {{=fullYear}}-{{=month}}-{{=days}} + * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}} + */ +@Table(name="{{=it.entity.defKey}}") +@Data +public class {{=it.func.camel(it.entity.defKey,true) }} implements Serializable,Cloneable{ +{{~it.entity.fields:field:index}} + /** {{=it.func.join(field.defName,field.comment,';')}} */ + {{? field.primaryKey }} + @Id + @GeneratedValue + {{?}} + private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ; +{{~}} +$blankline +}