0

below is my query:

Currently we are reading data from DB(Oracle) using Hibernate and ehcache second level cache for performance of the application.

my New Requirement: instead of hitting DB(oracle) ,I need to read data from Flat file and same data has to map( Hibernate second level cache), so that i can reuse my whole application again. just changing dialect to support reading from file.

do we have any hibernate or other third party Plugins to achieve this.

1

1 Answer 1

0

This would require a hibernate dialect that could read the format of your file, which doesn't exist. You could write your own dialect, but not sure that's an option.

Another approach might be to use in in-memory data provider, load the data there, and run, something like HSQL.

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

Comments

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.