I know that by default plays JPA implementation uses DB to store references to BLOBs stored in file system, and I haven’t found, by this far, any way to switch this behaviour. – Is it possible somehow? If yes, how?
My specyfic use case requires storing content of large text files inside DB to make access to them as fast as possible.
The correct way to do this is to use the
@javax.persistence.Lobannotation.There was a bug raised that the documentation does not cover the use case of saving data to a DB instead of a filesystem. The resolution to the bug was to point the asker to the following source code…
https://gist.github.com/1275419