If anyone looks for a very simple file based database try this older low-level database which is very easy to understand. It is a tutorial, but you can download the full source code here.
Basically it uses a simple RandomAccessFile and standard java serialization, so you can store everything serializable and you don't need any special configuration or Annotations in your objects to use it. No need for any libraries.