0

In an Oracle db there is a "COUNTRY" UDT which contains a nested table of a different "CITY" UDT (every country can have several cities).

How can I implement a "cities" property in a Java class "Country" (which implements SQLData interface) that could be mapped to "CITY" UDT?

  • There is an [SQLData example of passing an object](https://stackoverflow.com/a/54347047/1509264) and an [non-SQLData example of passing an array of objects](https://stackoverflow.com/a/51144013/1509264); however, I've never tried passing an object containing an array using SQLData. – MT0 Feb 07 '23 at 15:26
  • Thanks. Maybe the second example can help me. I'm going to study it. – errorrelativo Feb 08 '23 at 00:50

0 Answers0