Session s = openSession();
s.doWork( connection -> {
try {
connection.createStatement().execute( "drop table \"table\" " );
}catch (Exception e){
}
connection.createStatement( ).execute( "create table \"table\" (" +
" \"index\" number(10,0) generated as identity," +
" \"from\" varchar2(255 char)," +
" \"timestamp\" number(19,0)," +
" primary key (\"index\")" +
" )" );
connection.prepareStatement( " insert " +
" into" +
" \"table\"" +
" (\"from\", \"timestamp\") " +
" values" +
" (?, ?)" , new String[]{"\"index\""} );
});