哪位用hibernate 处理过嵌套表(nested)能不能讲讲

03-07-17 hibernate
谢谢

robbin
2003-07-17 21:17
你能告诉我什么是嵌套表吗?

bruce
2003-07-17 23:34
不会是说子查询吧?

hibernate
2003-07-18 09:12
oracle中一种集合类型//不知道其他数据库有没有

create type address_type as object
( city varchar2(15),
zip varchar2(5));
/

create type bbb as table of address_type;
/

create table ccc(
id integer primary key,
name varchar2(15),
address bbb)
nested table
address
store as
nested_addresses;

添加
insert into ccc values( 1, 'hi',bbb( address_type ('bki' , 't'),
address_type('bhy' , 'y')
)
);