title: Add a list of items in MyBatis sharing a value in SQL column
body: <p>I have a <code>List&lt;MyItem&gt;</code> that I want to insert via <a href="/questions/tagged/mybatis" class="post-tag" title="show questions tagged 'mybatis'" rel="tag">mybatis</a> to a table:</p>
  
  <pre><code>CREATE TABLE activities (
    id  BIGINT GENERATED BY DEFAULT AS IDENTITY,
    group_id  BIGINT NOT NULL,
    name VARCHAR(64),
    CONSTRAINT pk_activities PRIMARY KEY (id)
  );
  </code></pre>
  
  <ul>
  <li><code>id</code> is auto generated / unique</li>
  <li><code>group_id</code> should be unique per <code>List&lt;&gt;</code></li>
  <li><code>name</code> is just a property of <code>MyItem</code></li>
  </ul>
  
  <p>When I insert them I want <a href="/questions/tagged/mybatis" class="post-tag" title="show questions tagged 'mybatis'" rel="tag">mybatis</a> <strong>or</strong> the database to make all inserted items share the same (but unique in the database) <code>group_id</code> value.</p>
  
  <p><strong>Is this possible in a single <code>insert</code> operation?</strong>
  If not - is it possible in 2,3.. ?</p>
  
  <p><strong>I strongly underline the fact, that either MyBatis OR the database itself (via SQL) can do whan I am looking for</strong></p>