12c40c6004
Add Node.js CLI tool with Handlebars templates for generating standard CRUD artifacts: Java entity, service, DAO, controller, MyBatis mapper XML, and Vue frontend pages. Also generate the full SampleTableBoard CRUD reference implementation, update README with backend execution instructions, and add project plan documentation.
19 lines
464 B
Handlebars
19 lines
464 B
Handlebars
package {{rootPackage}};
|
|
|
|
import java.util.List;
|
|
|
|
import {{entityFqcn}};
|
|
|
|
public interface {{serviceName}} {
|
|
|
|
List<{{entityName}}> get{{entityName}}List();
|
|
|
|
{{entityName}} get{{entityName}}({{primaryKeyJavaType}} {{primaryKeyProperty}});
|
|
|
|
{{entityName}} create{{entityName}}({{entityName}} {{entityVarName}});
|
|
|
|
{{entityName}} update{{entityName}}({{entityName}} {{entityVarName}});
|
|
|
|
void delete{{entityName}}({{primaryKeyJavaType}} {{primaryKeyProperty}});
|
|
}
|