use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class NumericTypesIT method setUp.
@Before
public void setUp() throws Exception {
tSmallintTest = new TableHelper(dbHelper, "SMALLINT_TEST");
tSmallintTest.setColumns("ID", "SMALLINT_COL");
tTinyintTest = new TableHelper(dbHelper, "TINYINT_TEST");
tTinyintTest.setColumns("ID", "TINYINT_COL");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class FlattenedServerCase method startCayenne.
@Before
public void startCayenne() throws Exception {
this.runtime = configureCayenne().build();
DBHelper dbHelper = new DBHelper(runtime.getDataSource());
this.e3 = new TableHelper(dbHelper, "E3").setColumns("ID");
this.e4 = new TableHelper(dbHelper, "E4").setColumns("ID");
this.e34 = new TableHelper(dbHelper, "E34").setColumns("E3_ID", "E4_ID");
this.e34.deleteAll();
this.e3.deleteAll();
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneDataObjectSetToManyMapIT method setUp.
@Before
public void setUp() throws Exception {
tMapToMany = new TableHelper(dbHelper, "MAP_TO_MANY");
tMapToMany.setColumns("ID");
tMapToManyTarget = new TableHelper(dbHelper, "MAP_TO_MANY_TARGET");
tMapToManyTarget.setColumns("ID", "MAP_TO_MANY_ID", "NAME");
tIdMapToMany = new TableHelper(dbHelper, "ID_MAP_TO_MANY");
tIdMapToMany.setColumns("ID");
tIdMapToManyTarget = new TableHelper(dbHelper, "ID_MAP_TO_MANY_TARGET");
tIdMapToManyTarget.setColumns("ID", "MAP_TO_MANY_ID");
createTestDataSet();
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneIT method setUp.
@Before
public void setUp() throws Exception {
tArtist = new TableHelper(dbHelper, "ARTIST");
tArtist.setColumns("ARTIST_ID", "ARTIST_NAME");
tPainting = new TableHelper(dbHelper, "PAINTING");
tPainting.setColumns("PAINTING_ID", "ARTIST_ID", "PAINTING_TITLE");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class Cay2641IT method setup.
@Before
public void setup() throws Exception {
TableHelper th = new TableHelper(dbHelper, "ArtistLazy").setColumns("ID", "NAME", "SURNAME").setColumnTypes(Types.INTEGER, Types.VARCHAR, Types.VARCHAR);
th.insert(1, "artist1", "artist2");
th = new TableHelper(dbHelper, "PaintingLazy").setColumns("ID", "NAME", "ARTIST_ID").setColumnTypes(Types.INTEGER, Types.VARCHAR, Types.INTEGER);
th.insert(1, "painting1", 1);
}
Aggregations