Code: Select all
create type cust_type as (foo varchar, bar varchar);
create table my_table (attr cust_type, ...);
@Struct(name = "cust_type", attributes = {"foo", "bar"})
Class CustType {
String foo;
String bar;
}
Class MyTable {
CustType attr;
}
< /code>
Das funktioniert oben.Class MyTable {
@Column(name = "attr.foo")