0

How should I need to connect with the database from flow to fetch the data instead of vault querying?

1.Instead of using custom query criteria, I am planning to use query command(like SQL command) to fetch the data from database.

2.Is it possible?

3.If it is possible, how to achieve it?

1 Answer 1

3

serviceHub.jdbcSession().prepareStatement() or serviceHub.withEntityManager { }

Sign up to request clarification or add additional context in comments.

2 Comments

Hello @Dan Newton Can you give me an example code? because i m getting the exception("com.esotericsoftware.kryo.KryoException: java.lang.UnsupportedOperationException: com.zaxxer.hikari.pool.HikariProxyPreparedStatement, which is a closeable resource, has been detected during flow checkpointing. Restoring such resources across node restarts is not supported. Make sure code accessing it is confined to a private method or the reference is nulled out.")
For further details refer the link: stackoverflow.com/questions/57095232/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.