posted 14 years ago
Hi! I load instances before delete it, I mean:
MyClass instance = dao.read(id);
dao.delete(instance);
But I saw an example that he simply do this:
dao.delete(new MyClass(id));
It's simpler, and it has better performance. My doubt is if there is some problem using this approach.