Relational Database arrays (H2, Java)

Posted by Daddy Warbox on Stack Overflow See other posts from Stack Overflow or by Daddy Warbox
Published on 2010-04-06T12:12:59Z Indexed on 2010/04/06 12:23 UTC
Read the original article Hit count: 155

Filed under:
|
|
|
|

I seem to have two options on how to implement arrays, and I want to know which I should go with:

  • Use the ARRAY data type and (from what I understand) effectively serialize data objects into the database (which in my case are just wrapped primitive types; don't know of another way to make this work).

  • Use a separate table and map with foreign keys for each array item.

If you have experience with this (especially with H2), which would you recommend?

© Stack Overflow or respective owner

Related posts about array

Related posts about h2