use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneContextEJBQLIT method setUp.
@Before
public void setUp() throws Exception {
tMtTable1 = new TableHelper(dbHelper, "MT_TABLE1");
tMtTable1.setColumns("TABLE1_ID", "GLOBAL_ATTRIBUTE1", "SERVER_ATTRIBUTE1");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneContextInheritanceIT method setUp.
@Before
public void setUp() throws Exception {
tMtTable1 = new TableHelper(dbHelper, "MT_TABLE1");
tMtTable1.setColumns("TABLE1_ID", "GLOBAL_ATTRIBUTE1", "SERVER_ATTRIBUTE1", "SUBCLASS_ATTRIBUTE1").setColumnTypes(Types.INTEGER, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR);
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class CayenneContextRelationshipsIT method setUp.
@Before
public void setUp() throws Exception {
tMtTable1 = new TableHelper(dbHelper, "MT_TABLE1");
tMtTable1.setColumns("TABLE1_ID", "GLOBAL_ATTRIBUTE1", "SERVER_ATTRIBUTE1");
tMtTable2 = new TableHelper(dbHelper, "MT_TABLE2");
tMtTable2.setColumns("TABLE2_ID", "TABLE1_ID", "GLOBAL_ATTRIBUTE");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class EmbeddingIT method setUp.
@Before
public void setUp() throws Exception {
tEmbedEntity1 = new TableHelper(dbHelper, "EMBED_ENTITY1");
tEmbedEntity1.setColumns("ID", "NAME", "EMBEDDED10", "EMBEDDED20", "EMBEDDED30", "EMBEDDED40");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class FlattenedPrefetchIT 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");
tArtgroup = new TableHelper(dbHelper, "ARTGROUP");
tArtgroup.setColumns("GROUP_ID", "NAME");
tArtistGroup = new TableHelper(dbHelper, "ARTIST_GROUP");
tArtistGroup.setColumns("ARTIST_ID", "GROUP_ID");
}
Aggregations