18 package com.mysql.clusterj.jpatest;
20 import com.mysql.clusterj.jpatest.model.Embedded;
21 import com.mysql.clusterj.jpatest.model.Embedding;
22 import com.mysql.clusterj.jpatest.model.IdBase;
44 private int NUMBER_OF_INSTANCES = 10;
67 em.getTransaction().begin();
68 for (
int i = 0;
i < NUMBER_OF_INSTANCES ; ++
i) {
72 em.getTransaction().commit();
75 private Embedding createEmbedding(
int i) {
76 Embedded embedded =
new Embedded();
78 embedded.setName(
"Embedded " + i);
79 Embedding embedding =
new Embedding();
81 embedding.setMagic(i);
82 embedding.setEmbedded(embedded);