Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no build in function to to that, especially when storing the arraylist in just 1 column. You could convert your class A to a string, and separate the data by specific characters, how ever that is not the right way to go.</p> <p>You need a new database system, something like this:</p> <p><strong>Your table:</strong></p> <p>Your Column | Some other Column | and another Column | ArraylistA_id</p> <p><strong>ArraylistA table:</strong></p> <p>ArraylistA_id | String1 | String2 | ArraylistB_id</p> <p><strong>ArraylistB table:</strong></p> <p>ArraylistB_id | int | double</p> <p>In this database system the columns "ArraylistA id" and "ArraylistB id", are pointers to other rows in another table. So for example when your arraylistA exists out of the following:</p> <p>Arraylist A{</p> <p>{"TEST", "TEST", ArrayListB{{1,1.0}, {2, 2.0}, {3, 3.0}}}</p> <p>{"HELLO", "HELLO", ArrayListB{{9,9.0}, {8, 8.0}, {7, 7.0}}}</p> <p>};</p> <p>Than the records in the sql database would be the following:</p> <p><strong>Your table:</strong></p> <pre><code>Your Column | Some other Column | and another Column | ArraylistA_id 1 </code></pre> <p><strong>ArraylistA table:</strong></p> <pre><code>ArraylistA_id | String1 | String2 | ArraylistB_id 1 TEST TEST 1 2 HELLO HELLO 2 </code></pre> <p><strong>ArraylistB table:</strong></p> <pre><code>ArraylistB_id | int | double 1 1 1.0 1 2 2.0 1 3 3.0 2 9 9.0 2 8 8.0 2 7 7.0 </code></pre> <p>The point of the complete story is that you never should store an arraylist like this in just one column, you need a proper database system before doing something like this. Made this on my tablet in the train, when i arrive at school i will clean it up a bit.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload