I am using Apache JackRabbit for storing the images for my application. I have just started to use it and I still have some questions unanswered:
What is the difference between a content repository and a database?
Can you use a content repository for saving all the data of an application instead of a database? (I know you can add all kind of nodes and properties it is more like a question if you actually should save everything in the content repository).
Are content repositories always organized in hierarcies?
I am struggeling with the definition of what makes a content repository.
Why? If you don't know what it's for? That's not one of the things it is best at. You would be better off storing images in the file system.
A database is for structured data that you want to access in a transactional way. A content repository is basically for documents, where you may need e.g. versioning, hierarchy, ownership, ...
Yes but you shouldn't.
How to organize it is up to you but that's the way it's usually done.
As an example, I am presently using four datastores: