当前位置:网站首页>Tips to make your code more and more taller and taller - code specification, you have to know
Tips to make your code more and more taller and taller - code specification, you have to know
2022-08-11 05:17:00 【weixin_47088026】
Code Specification
The class name uses the UpperCamelCase style and must follow the camel case, with the following exceptions: DO / BO /DTO / VO / AO Positive example: MarcoPolo / UserDO / XmlService / TcpUdpDeal / TaPromotion Negative example: macroPolo / UserDo / XMLService / TCPUDPDeal /TAPromotion
Layer naming convention:
A) Service/DAO layer method naming convention
- Methods that get a single object are prefixed with get.
- Methods that get multiple objects are prefixed with list.
- The method of getting statistics is prefixed with count.
- Insert methods are prefixed with save/insert.
- Delete methods are prefixed with remove/delete.
- Modified methods are prefixed with update.
B) Domain Model Naming Convention
- Data object: xxxDO, where xxx is the name of the data table.
- Data transfer object: xxxDTO, where xxx is the name related to the business field.
- Display object: xxxVO, xxx is generally the name of the webpage.
- POJO is the collective name of DO/DTO/BO/VO, and it is forbidden to name it xxxPOJO.
边栏推荐
- You must understand - the nine built-in objects and four domain objects of JSP
- @Resource和@Autowired的区别
- [FPGA tutorial case 50] Control case 2 - FPGA-based PD controller verilog implementation
- [Untitled] 2022 Amination Process Exam Questions Mock Exam Question Bank and Online Mock Exam
- 【无2022上海市安全员A证考试题库及模拟考试
- 02.折叠隐藏文字
- Development Tools Lecture 7: Alibaba Cloud Log Query and Analysis
- 绿盾加密如何顺利切换成IP-Guard加密
- 【ARM】rk3399挂载nfs报错
- C语句:数据存储
猜你喜欢
C statement: data storage
[Embedded open source library] The use of cJSON, an efficient and streamlined json parsing library
Idea essential skills to improve work efficiency
Switch and Router Technology - 28 - NSSA Areas for OSPF
Switches and routers technology - 24 - configure OSPF single area
Switch and Router Technology-35-NAT to PAT
C语句:数据存储
网络协议1
Delphi7学习记录-demo实例
How to switch Green Shield encryption to IP-Guard encryption smoothly
随机推荐
2022 coal mine gas inspection test, simulation test question and answer
让你代码越来越高大上的技巧——代码规范,你得知道
Switch and Router Technology - 36-Port Mirroring
Switch and Router Technology - 28 - NSSA Areas for OSPF
C statement: data storage
Idea essential skills to improve work efficiency
paddlepaddle implements CS_CE Loss and incorporates PaddleClas
Prometheus :(一)基本概念
[FPGA tutorial case 49] Control case 1 - FPGA-based PID controller verilog implementation
ARM结构体系4:嵌入式硬件平台接口开发
【嵌入式开源库】MultiButton的使用,简单易用的事件驱动型按键驱动模块
Configure checkstyle in IDEA
Kong implements ban on foreign IP access
ARM Architecture 4: Embedded Hardware Platform Interface Development
Switch and Router Technology-31-Extended ACL
The use of async (asynchronous) and await
论文笔记:Bag of Tricks for Long-Tailed Visual Recognition with Deep Convolutional Neural Networks
宝塔Linux环境下redis开启多端口
Redis详解
In the closing pages/uninstall (unload) sends a request to the server before the document