# CodeTemple **Repository Path**: laberinto/CodeTemple ## Basic Information - **Project Name**: CodeTemple - **Description**: It is used to convert SQL into entity class quickly, and to judge the attributes of the fields in the entity class simply according to the names of the fields in SQL, - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-02-20 - **Last Updated**: 2024-05-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CodeTemple #### 介绍 It is used to convert SQL into entity class quickly, and to judge the attributes of the fields in the entity class simply according to the names of the fields in SQL, and add the common annotations, which is convenient for the following development work. It's also very easy to use. Add the SQL you want to convert in the left-most field, (note that the SQL must be a working SQL that does not contain an IF function, so use case when instead.) Enter a Chinese comment in the middle input box and use a carriage return to split it, if (note 1 Note 2 Note 3) click on the immediate conversion button below, you can view the preview results in the right box, click on the confirmation button, you can directly generate the preview results to the entity class, if you encounter a build failure, you can simply copy the results in the preview box to the entity class. This plug-in is mainly used to convert fields in SQL into fields in DTO, one by one, to reduce the duplication of effort 用来将sql快捷转换成实体类, 并根据sql中字段的命名,来简易判断实体类中字段的属性 并添加了常用的注解,方便后续开发工作. 使用方式也非常简便, 在最左边的输入框中添加你需要转换的sql, (注意,该sql必须是可以正常运行的sql,并且不包含IF函数, 如有请使用case when 代替) 在中间的输入框中输入中文备注,并使用回车进行分割,如 (注释1 注释2 注释3) 点击下方立即转换按钮, 即可在右边的框中查看预览结果, 点击确认按钮,可以将预览中的结果直接生成至实体类, 若遇到生成失败的情况,可以直接复制预览框中的结果至实体类. 该插件主要用于将sql中的字段逐一转换成DTO中的字段,减少重复工作量