2013-05-01 Created By BaoXinjian
一、摘要
本文介绍通过数据组件创建数据库Diagram图,以及创建database user,重构数据库offline definition,产生DDL重构脚本,以及通过数据现在的内容反编译成ADFDefinition
案例目的:创建一个Database Diagram / Tables / View / Sequence / Table Partitions / User / Database Connection / Generate DDL / Reconcile Database / Reverse Objects
案例描述如下
Step 1: Create a New Application and Project
Step 2: Create a Database Diagram
Step 3: Create Offline Database Tables on a Diagram
Step 4: Create an Offline Database View
Step 5: Add a Sequence to a Diagram
Step 6: Create a Table with Partitions
Step 7: Create a Database User and Database Connection
Step 8: Generate a DDL Script
Step 9: Reconcile the Database
Step 10: Reverse Engineer Database Objects
9: Reconcile the Database
Step1. 在Department表中新增一个栏位Town
Step2. 在Person表Gender栏位加入约束,不能为NULL值
Step3. 将Person和Address重新Regenerate
Step4. 作为手工Reconcile,并确定DB Connection
Step5. 修改前和修改后做个比较
Step6. 查看所产生的重构脚本