You have table description in second message in this thread
this is create script:
create table fin_nk (
id number(6) not null,
rj varchar2(6) not null,
vn varchar2(4) not null,
zap varchar2(6) not null,
dat date,
ok varchar2(1),
zak varchar2(1)
)
tablespace "&1"
/
create table fin_nks (
nk number(6) not null,
red number(6) not null,
opn varchar2(4) not null,
kon varchar2(10) not null,
datd date,
datv date,
dug number,
pot number,
sifd varchar2(40),
kifkuf varchar2(20),
anal varchar2(6),
dugs varchar2(1),
pots varchar2(1),
val varchar(3)
)
/
alter table fin_nk add
constraint fin_fin_nk_prim
primary key (id)
using index
tablespace "&1"
/
alter table fin_nk add
constraint fin_nk_ok
check (ok is null or ok = 'D')
/
alter table fin_nk add
constraint fin_nk_zak
check (zak is null or zak = 'D')
/
alter table fin_nks add
constraint fin_fin_nks_prim
primary key (nk,red)
using index
tablespace "&1"
/
alter table fin_nks add
constraint fin_nks_nk
foreign key (nk)
references fin_nk(id)
/
tables have yet foreign keys for any tables in schema, but I send
only for this two tables
regards
p.s
I set class name in preferences file and I get mapping for both tables
init is slow (4-5 minutes)
|