I am trying to create an object with a composite primary key. There doesn't seem to be any examples on how to do it and I keep getting an Illegal argument exception.
public class LogPK {
private ObjectId logId;
private Date logDate;
}
public class logEntry {
@Id
private LogPK id;
private String note;
}
I can do this in Spring Data, but it doesn't work with MongoJack. I get:
java.lang.IllegalArgumentException: Unsupported ID type: class .....
Can someone please point me in the right direction. Composite keys are pretty standard in Mongo and I'm surprised I'm having such a difficult time with this.
Thanks for your help.