public abstract class Storable
{
@Id
private String id;
public String getId()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
}
public void removeStatuses(List<String> ids)
{
// JacksonDBCollection<T, String>
getCollection().remove(DBQuery.in("_id", ids), WriteConcern.JOURNALED);
}
public void removeStatuses(List<String> ids)
{
// JacksonDBCollection<T, String>
getCollection().remove(DBQuery.in("id", ids), WriteConcern.JOURNALED);
}
public void removeStatuses(List<String> ids)
{
final BasicDBList value = new BasicDBList();
for (String id : ids)
{
value.add(new ObjectId(id));
}
final BasicDBObject q = new BasicDBObject("_id", new BasicDBObject("$in", value));
getCollection().getDbCollection().remove(q, WriteConcern.JOURNALED);
}
There are several open issues that are some variation of this same problem,
which is that there are issues serializing _id particularly with
polymorphic objects.
Concise repro here:
https://github.com/devbliss/mongojack/pull/57
This shouldn't be too hard to fix, but I am hesitant to sink time into it
as at present there are no project admins who are able to look at and merge
pull requests.
--
You received this message because you are subscribed to the Google Groups "mongo-jackson-mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongo-jackson-ma...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mongo-jackson-mapper+unsub...@googlegroups.com.