use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class FlattenedRelationshipInContextIT method setUp.
@Before
public void setUp() throws Exception {
tFlattenedTest1 = new TableHelper(dbHelper, "FLATTENED_TEST_1");
tFlattenedTest1.setColumns("FT1_ID", "NAME");
tFlattenedTest2 = new TableHelper(dbHelper, "FLATTENED_TEST_2");
tFlattenedTest2.setColumns("FT2_ID", "FT1_ID", "NAME");
tFlattenedTest3 = new TableHelper(dbHelper, "FLATTENED_TEST_3");
tFlattenedTest3.setColumns("FT3_ID", "FT2_ID", "NAME");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class NestedDataContextReadIT 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", "PAINTING_TITLE", "ARTIST_ID", "ESTIMATED_PRICE").setColumnTypes(Types.INTEGER, Types.VARCHAR, Types.BIGINT, Types.DECIMAL);
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class DataContextEJBQLUpdateCompoundIT method setUp.
@Before
public void setUp() throws Exception {
tCompoundPk = new TableHelper(dbHelper, "COMPOUND_PK_TEST");
tCompoundPk.setColumns("KEY1", "KEY2");
tCompoundFk = new TableHelper(dbHelper, "COMPOUND_FK_TEST");
tCompoundFk.setColumns("PKEY", "F_KEY1", "F_KEY2");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class DataContextEJBQLUpdateIT 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", "ESTIMATED_PRICE").setColumnTypes(Types.INTEGER, Types.BIGINT, Types.VARCHAR, Types.DECIMAL);
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class DataContextExtrasIT 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", "ESTIMATED_PRICE").setColumnTypes(Types.INTEGER, Types.BIGINT, Types.VARCHAR, Types.DECIMAL);
}
Aggregations