当前位置:网站首页>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.
边栏推荐
猜你喜欢

ESP8266 教程3 — 通过TCP组建局域网并通信

leetcode 9. Palindromic Numbers

form form submission database Chinese becomes a question mark

Idea essential skills to improve work efficiency

分库分表ShardingSphere-JDBC笔记整理

Redis-数据类型(基本指令、String、List、Set、Hash、ZSet、BitMaps、HyperLogLog、GeoSpatial)/发布和订阅

svg-icon的使用方法(svg-sprite-loader插件)

【嵌入式开源库】使用J-Link打印日志,让你节省一个打印串口

Switch and Router Technology - 32 - Named ACL

Internet Protocol 1
随机推荐
Thymeleaf
Switch and Router Technology-31-Extended ACL
报表控件Stimulsoft报告中的数据矩阵条形码介绍
应用层协议——DNS
论文笔记:BBN: Bilateral-Branch Network with Cumulative Learningfor Long-Tailed Visual Recognition
3 Module 2: Use of scientific research tools
Four functional interfaces
Application layer protocol - DNS
MFC Interprocess Communication (Shared Memory)
Delphi7 learning record - demo example
2.2 user manual] [QNX Hypervisor 10.15 vdev timer8254
4 Module 3: Literature Reading and Research Methods
智能指针笔记
Redis-数据类型(基本指令、String、List、Set、Hash、ZSet、BitMaps、HyperLogLog、GeoSpatial)/发布和订阅
guava RateLimiter uniform current limit
Configure checkstyle in IDEA
一个月闭关直接面进大厂,这份Android面试笔记是真的牛逼
C语言题解:谁是凶手!
form form submission database Chinese becomes a question mark
[No 2022 Shanghai Security Officer A Certificate Exam Question Bank and Mock Exam