ERwin建模配置词根映射、大小写
1. 配置词根映射
Tools >> Names >> Model Naming Options >> Name Mapping >> Macro Name
修改以下两个属性
Entity to Table:%Lookup(词根映射.txt,%EntityName())
Attribute to Column:%Decl(test,)%=(test,%Lookup(词根映射.txt,%AttName))%If(%==(%Substr(%:test,1,1),)){%Substr(%:test,2)}%else{%:test}
重要: 词根映射文件必须与当前建模的文件在同一个目录下,词根映射中的英文都必须以下划线为前缀,根据中文长度倒序排
2. 物理视图大小写配置
Tools >> Names >> Model Naming Options >> Physical >> Case
3.配置物理视图的字段注释与逻辑试图的字段名称一致
切换物理试图状态下
Model >> Domain Dictionary >> Comment >> Comment Inherited by Col:*
配置: %AttName