use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class RemoteIncrementalFaultListIT method setUp.
@Before
public void setUp() throws Exception {
tMTTable = new TableHelper(dbHelper, "MT_TABLE1");
tMTTable.setColumns("TABLE1_ID", "GLOBAL_ATTRIBUTE1", "SERVER_ATTRIBUTE1");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class DataContextEJBQLDeleteIT method setUp.
@Before
public void setUp() throws Exception {
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 DataContextIT method setUp.
@Before
public void setUp() throws Exception {
tArtist = new TableHelper(dbHelper, "ARTIST");
tArtist.setColumns("ARTIST_ID", "ARTIST_NAME");
tExhibit = new TableHelper(dbHelper, "EXHIBIT");
tExhibit.setColumns("EXHIBIT_ID", "GALLERY_ID", "OPENING_DATE", "CLOSING_DATE");
tGallery = new TableHelper(dbHelper, "GALLERY");
tGallery.setColumns("GALLERY_ID", "GALLERY_NAME");
tPainting = new TableHelper(dbHelper, "PAINTING");
tPainting.setColumns("PAINTING_ID", "PAINTING_TITLE", "ARTIST_ID", "ESTIMATED_PRICE");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class DataContextDisjointByIdPrefetchIT 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").setColumnTypes(Types.INTEGER, Types.BIGINT, Types.VARCHAR);
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 DataContextEJBQLInheritanceIT method setUp.
@Before
public void setUp() throws Exception {
TableHelper person = new TableHelper(dbHelper, "PERSON");
person.setColumns("PERSON_ID", "NAME", "PERSON_TYPE", "SALARY").setColumnTypes(Types.INTEGER, Types.VARCHAR, Types.CHAR, Types.FLOAT);
person.insert(1, "a", "EE", 20000);
person.insert(2, "b", "EE", 25000);
person.insert(4, "c", "EM", 30000);
person.insert(5, "d", "EM", 40000);
person.insert(6, "e", "C", null);
}
Aggregations