My problem is that com.tinkerpop.blueprints.Vertex class does not support multiple properties (Cardinality.SET or Cardinality.LIST). To get this option TitanVertex class that extends from Vertex must be used. I want use TransactionRetryHelper to make titan DB transaction.
User user = new TransactionRetryHelper.Builder<User>(tw.getConnection())
.perform(new TransactionWork<User>() {
@Override
public User execute(final TransactionalGraph tg) throws Exception {
return userDao.getUser(tg, userId);
}
}).build().oneAndDone();
But in this case TransactionWork interface pass TransactionalGraph to execute method and not TitanGraph that extends TransactionalGraph. The TitanVertex object I can get only from TitanGraph but not from TransactionalGraph. What is the alternative to TransactionRetryHelper that allows to use the TitanGraph?