—元数据所做的工作
发布元数据会导致以下表中产生数据
执行脚本即执行建表语句
下面只介绍发布元数据所产生的数据
–先根据表名查出发布的元数据的组件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接口