- 7
- 0
- 约1.69万字
- 约 23页
- 2017-06-05 发布于河南
- 举报
Struts命名规范(国外英文资料)
Struts命名规范
Character set
A minus z a minus z 0 minus 9 and a total of 63
All notes begin with a lowercase letter, all nouns are singular, so the prefix is lowercase
Such as: userIduser_id
Database object naming conventions
Database objects = {tables, views (queries), indexes, associations, stored procedures (parameter queries), functions}
Rule: the object name is composed of prefix and actual name, underline between them, dont leave space between the object names of characters, the length is not more than 30 characters.
[object name] = [the actual name]
Prefix: use lowercase letters
terabyte
View vi
Index idx
Correlation rl
Stored procedure sp
Function fn
Real name: real name description of the entity, as far as possible by word or word combination, (except the first) the first letter of each word uppercase and lowercase letters, and other not with Numbers and _
At the beginning, there is no underline between words and words.
[the actual name] = [the words beginning with a lowercase letter]... [capital letters]
For example: userNamepassWord userRegisterTime
[the words] [a] [a] [a]. [a-z | a-z | 0-9 | _]
Example: tb_webUservi_userOrder
Database table naming specifications
The table name is formed by the prefix (TB)
[table name] = tb_ [actual name]
Field naming conventions
[field name] = [the actual name]
It is now agreed that [the name of the table] = [the actual name] of [the] part of the [table name] is composed of the alphabetical order of the words
For example, tb_userInfomation applies this rule, which is called the uI for short
View naming conventions
[view] = vi_ [real name]
Stored procedure naming conventions
[stored procedure name] = sp_ [actual name] [operation name]
[operation name] = [insert | delete | update | calculate | confirm]
For example: sp_userState_update
Index naming conventions
[index] = idx [0-9] _ [the name]
Example: idx0_uInfo_age
Note: [the name of the table] is different from the above [table name], which USES the following string simplifi
原创力文档

文档评论(0)