nc 中发布元数据的作用 和注意事项
2016-12-27 18:45
211 查看
---元数据所做的工作
发布元数据会导致以下表中产生数据
执行脚本即执行建表语句
下面只介绍发布元数据所产生的数据
--先根据表名查出发布的元数据的组件id ,之后的查询都是通过compentid来查询数据
componentid 指得是点击空白处的组件ID
假设表名是pt_app_account
select componentid from md_class where defaulttablename='pt_app_account';
--f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf
---md_table
select * from md_table where id in
(select defaulttablename from md_class where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
---枚举
select * from MD_ENUMVALUE where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
----列数据
select * from md_column where tableid in
(select defaulttablename from md_class where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
--主子表关联关系表
select * from md_db_relation where startattrid in
(select id from md_property where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
--属性表
select * from md_property where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
select * from md_association where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
--
select * from MD_ACCESSORPARA where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
select * from md_bizitfmap where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
--
select * from md_ormap where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
select * from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
---组件
select * from md_component where id='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
2.向导 开发 生成 主子表单据
1.主表 访问器类型 AGGVo 修改类名称 名称HVO 不要下划线
2.字表 访问器类型 NCVO 修改类名称 名称为BVO 不要下划线
3.点击空白处 名称空间和所属模块默认为 工程名 需要修改为模块名
4.修改元数据时 也需要修改名称空间 和模块名 然后保存 因为每一次都会变为默认的名称空间和模块
5.向导生成的元数据 有些字段是非空的 在不需要的情况下 记得修改元数据的 交易类型 和制单时间
7.带有审批的主子表 需要实现的8个接口 除了自动生成的接口外 还有 vo接口
发布元数据会导致以下表中产生数据
执行脚本即执行建表语句
下面只介绍发布元数据所产生的数据
--先根据表名查出发布的元数据的组件id ,之后的查询都是通过compentid来查询数据
componentid 指得是点击空白处的组件ID
假设表名是pt_app_account
select componentid from md_class where defaulttablename='pt_app_account';
--f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf
---md_table
select * from md_table where id in
(select defaulttablename from md_class where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
---枚举
select * from MD_ENUMVALUE where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
----列数据
select * from md_column where tableid in
(select defaulttablename from md_class where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
--主子表关联关系表
select * from md_db_relation where startattrid in
(select id from md_property where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
--属性表
select * from md_property where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
select * from md_association where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
--
select * from MD_ACCESSORPARA where id in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
select * from md_bizitfmap where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
--
select * from md_ormap where classid in
(select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
select * from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
---组件
select * from md_component where id='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
2.向导 开发 生成 主子表单据
1.主表 访问器类型 AGGVo 修改类名称 名称HVO 不要下划线
2.字表 访问器类型 NCVO 修改类名称 名称为BVO 不要下划线
3.点击空白处 名称空间和所属模块默认为 工程名 需要修改为模块名
4.修改元数据时 也需要修改名称空间 和模块名 然后保存 因为每一次都会变为默认的名称空间和模块
5.向导生成的元数据 有些字段是非空的 在不需要的情况下 记得修改元数据的 交易类型 和制单时间
7.带有审批的主子表 需要实现的8个接口 除了自动生成的接口外 还有 vo接口
相关文章推荐
- 电位器的作用与原理及注意事项
- ASP.NE网站发布注意事项简析
- VS2010发布安装程序注意事项
- 利用CXF发布restful WebService的注意事项
- 发布app注意事项
- iOS应用发布到Apple Store的流程及注意事项
- 学习笔记---将Asp.Net网站发布到IIS的四种方法及注意事项
- 项目发布部署的注意事项
- eclipse javaee版发布web项目的设置注意事项
- 使用VS2012开发的网站或者webservice在IIS6.0上发布的注意事项
- iis6.0 之前版本发布silverlight程序 注意事项
- UPS的注意事项和作用
- VS2010发布QT5注意事项
- 水处理过滤器:石英砂过滤器作用的注意事项
- .NET项目发布网站具体步骤和注意事项
- IIS7中发布WebService注意事项
- 使用VS2012开发的网站或者webservice在IIS6.0上发布的注意事项
- Maven作用、使用配置及注意事项
- IIS7中发布WebService注意事项
- 对百度发布网站改版注意事项的理解