For File properties, the files will forever stay in the File table. A file should be deleted when no entity owns a reference to the file anymore. This can be achieved using the delete orphan annotation of Hibernate.

Submitted by Elmer van Chastelet on 19 August 2015 at 16:14

Log in to post comments