Having a regular tupelo context, you can create a context with time annotating capabilities by decorating a the regular context with a CompositeContext:

Context context = ... //a regular tupelo context
DataSource dataSource =
   DataSourceFactory.getDataSource(DBType.MYSQL,"jdbc:mysql://host/db",
                                   "user","password");

Context timeAnnotatingContext = new CompositeContext(context,dataSource,DBType.MYSQL);
  • No labels