TestCase from Eddie.
TestSaveDelete:
// This fails public void testCreateDeletePersistentFile() { PersistentFile persistentFile = new PersistentFile("test.txt", new PersistentFileContent("test".getBytes()));
Ebean.save(persistentFile); Ebean.delete(persistentFile); }
Transaction logs show the delete of PersistentFileContent occurs twice. It should occur once and then delete the PersistentFile entity.
Fixed in HEAD.
To support Cascade delete on both sides we register a hash of the bean type and id.