I use Hibernate in a Java application to access my database and works well with MS-SQL and MySQL. But some of the data that I have to show in some forms should come from text files, and in text files I mean files with human readability, they can be CSV, tab delimited delimiters, or even a pair of keys, values ββin each line, because my data is as simple as that, but I prefer, of course, XML files.
My question is: can I use hibernation to read these files using HQL, Query, EntityManager and all these resources. Hibernate gives me file access. What file format should I use and how to set up My persistence.xml file to recognize files in the form of tables?
java database hibernate text-files
Fernando barrocal
source share