Play! framework 1.2.4 - immediate save from morphia Play! framework 1.2.4 - immediate save from morphia selenium selenium

Play! framework 1.2.4 - immediate save from morphia


Use WriteConcern here. When doing an write operation(delete in your case), you can specify a "write concern" to tell the system that you want the write to only be considered complete when the data has (for example) been flushed to disk and replicated to X slaves.Here an example for Morphia:

morpiaDao.delete(company, new WriteConcern(true));