首页 > 其他 > 详细

PowerDesigner生成OOM时类名属性名转换

时间:2015-10-22 12:17:44      阅读:297      评论:0      收藏:0      [点我收藏+]

Examples


  • Script 1: Convert a name into a class code (JAVA naming convention)转换类名

    .foreach_part(%Name%, "‘ _-‘")
    %.FU:CurrentPart%
    .next

    The conversion script will output:

    Name = Employee shareholder => Code = EmployeeShareholder

  • Script 2: Convert a name into a class attribute code (JAVA naming convention)转换属性名

    .set_value(_First, true, new)
    .foreach_part(%Name%, "‘ _-‘")
    .if (%_First%)
    %.L:CurrentPart%
    .set_value(_First, false, update)
    .else
    %.FU:CurrentPart%
    .endif
    .next

    The conversion script will output:

    Name = Employee shareholder => Code = employeeShareholder

PowerDesigner生成OOM时类名属性名转换

原文:http://www.cnblogs.com/ygjlch/p/4900236.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!