Issue 383 in morphia: Cannot delete entities with composite ID

2 views
Skip to first unread message

mor...@googlecode.com

unread,
Feb 24, 2012, 8:41:39 AM2/24/12
to morphia...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 383 by johan.ha...@gmail.com: Cannot delete entities with
composite ID
http://code.google.com/p/morphia/issues/detail?id=383

When an entity has a composite id you cannot delete it using the delete or
deleteById methods in BasicDAO.

Refer to the discussion here:
http://groups.google.com/group/morphia/browse_thread/thread/adeca43a68e0aff6

The reason is that the composite object is not mapped to a mongo object.
I've created a patch for this.

Attachments:
Support_deleting_entities_with_composite_id.patch 2.4 KB

mor...@googlecode.com

unread,
Feb 24, 2012, 9:15:59 AM2/24/12
to morphia...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 383 by scotthernandez: Cannot delete entities with
composite ID
http://code.google.com/p/morphia/issues/detail?id=383

This issue was closed by revision r1812.

mor...@googlecode.com

unread,
Feb 24, 2012, 9:20:00 AM2/24/12
to morphia...@googlegroups.com

Comment #2 on issue 383 by scotthernandez: Cannot delete entities with
composite ID
http://code.google.com/p/morphia/issues/detail?id=383

Thanks for the patch but the fix was a little different.

mor...@googlecode.com

unread,
Sep 14, 2012, 2:06:59 PM9/14/12
to morphia...@googlegroups.com

Comment #3 on issue 383 by andreymo...@gmail.com: Cannot delete entities
I'm having the same problem. This fix isn't in the latest release right? Do
you have any idea for an workaround?

tks
Andrey Bidinotto

mor...@googlecode.com

unread,
Sep 14, 2012, 2:08:00 PM9/14/12
to morphia...@googlegroups.com

Comment #4 on issue 383 by andreymo...@gmail.com: Cannot delete entities
with composite ID
http://code.google.com/p/morphia/issues/detail?id=383

I'm having the same problem. This fix isn't in the latest release right? Do
you have any idea for a workaround?

Reply all
Reply to author
Forward
0 new messages