1、 报错:Could not Initialize JavaVM 的解决方案:

powerDesigner不支持x64JDK,ok.安装32位.

仅仅是安装一下,不要做任何配置.......关闭powerDesigner,再打开powerDesigner,连接成功.

2、powerDesigner逆向工程报错:Unable to list the users. 的解决方案:

选择菜单栏中的Database -> Change Current DBMS ,给DBMS选择你的数据库类型【我使用的是MYSQL5.0】 确定就行了

3、PowerDesigner中comment和stereotype两个字段的互相转换,需要执行语句【其他字段之间原理是一样的】

由于PDM 的表中 Name 会默认=Code 所以很不方便, 所以需要将 StereoType 显示到表的外面来

打开[工具]->[显示属性](英文:Display Preferences) ->Content->Table->右边面板Columns框中 勾选: StereoType ,这样再在 StereoType中填入code字段相同内容就会显示在图形界面上了

使用说明: 在【Tools】-【Execute Commands】-【Edit/Run Script】 下。输入下面你要选择的语句即可,也可以保存起来,以便下次使用,后缀为.vbs。

需要注意的问题是:运行语句时必须在Module模式下,如果是导出报表时执行会出现错误提示。

代码如下:

 '把pd中那么comment  想自动添加到stereotype里面
'如果stereotype为空,则填入comment ;如果不为空,则保留不变,这样可以避免已有的注释丢失. Option Explicit
ValidationMode = True
InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If ' This routine copy comment into stereotype for each table, each column and each view
' of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
if trim(tab.stereotype)="" then'如果有表的注释,则不改变它.如果没有表注释.则把comment 添加到注释里面.
tab.stereotype = tab.comment
end if
Dim col ' running column
for each col in tab.columns
if trim(col.stereotype)="" then '如果col的stereotype为空,则填入comment ,如果已有注释,则不添加;这样可以避免已有注释丢失.
col.stereotype= col.comment
end if
next
end if
next Dim view 'running view
for each view in folder.Views
if not view.isShortcut and trim(view.stereotype)="" then
view.stereotype = view.comment
end if
next ' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub

4、powerdesigner反向MySQL 5.1数据库生成ER图

http://blog.sina.com.cn/s/blog_54cae6d70101h4dj.html

最新文章

  1. Ext.js的store里放model,还是field?
  2. Mac下搭建android开发环境
  3. linux命令(4):mkdir命令
  4. 【C++自绘控件】如何用GDI+来显示图片
  5. OpenCv皮肤检测-HSV分离
  6. Log4j2 配置笔记(Eclipse+maven+SpringMVC)
  7. Scala - 处理时间(nscala-time - Joda Time的scala封装)
  8. WebService学习整理(一)——客户端三种调用方式整理
  9. Big Event in HDU(01背包)
  10. Oracle如何只显示重复数据,或不显示重复数据
  11. 【Quick-COCOS2D-X 3.3 怎样绑定自己定义类至Lua之四】使用绑定C++至Lua的自己定义类
  12. VS2015 使用
  13. MapReduce初级案例
  14. Node.js~在linux上的部署~外网不能访问node.js网站的解决方法
  15. Mac使用Gradle上传jar到中央仓库(最完整的采坑记录)
  16. 【刷题】Git知识点
  17. HashMap? ConcurrentHashMap? 相信看完这篇没人能难住你!
  18. Alpha 冲刺 (3/10)
  19. Xamarin开发的一个简单画图程序分享
  20. curator 分布式锁InterProcessMutex

热门文章

  1. Sql Server 开放4399端口命令行
  2. linux下给cpu加压
  3. hadoop 集群配置--增加减少新的机器不重启
  4. JavaScript---详解cookie
  5. L187 DKK2
  6. 51Nod 1049:最大子段和(dp)
  7. 《DSP using MATLAB》Problem 2.14
  8. CenOS7.4内核升级修复系统漏洞
  9. test20181024 qu
  10. Array.new(5, [1, 2, 3]) or Array.new(5) { [1, 2, 3] }的差别