use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneDataObjectRelationshipsIT 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");
tPaintingInfo = new TableHelper(dbHelper, "PAINTING_INFO");
tPaintingInfo.setColumns("PAINTING_ID", "TEXT_REVIEW");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneDataObjectSetToManyCollectionIT method setUp.
@Before
public void setUp() throws Exception {
TableHelper tCollectionToMany = new TableHelper(dbHelper, "COLLECTION_TO_MANY");
tCollectionToMany.setColumns("ID");
TableHelper tCollectionToManyTarget = new TableHelper(dbHelper, "COLLECTION_TO_MANY_TARGET");
tCollectionToManyTarget.setColumns("ID", "COLLECTION_TO_MANY_ID");
// single data set for all tests
tCollectionToMany.insert(1).insert(2);
tCollectionToManyTarget.insert(1, 1).insert(2, 1).insert(3, 1).insert(4, 2);
}
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");
}
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 OneWayRelationshipsIT method setUp.
@Before
public void setUp() throws Exception {
t1Helper = new TableHelper(dbHelper, "oneway_table1");
t1Helper.setColumns("ID");
t2Helper = new TableHelper(dbHelper, "oneway_table2");
t2Helper.setColumns("ID", "TABLE1_ID");
t3Helper = new TableHelper(dbHelper, "oneway_table3");
t3Helper.setColumns("ID");
t4Helper = new TableHelper(dbHelper, "oneway_table4");
t4Helper.setColumns("ID", "TABLE3_ID").setColumnTypes(Types.INTEGER, Types.INTEGER);
}
Aggregations