0
:スプリングデータMongoDBのクエリentitis下記(EventReactions、EventLogに)考慮
public class EventReaction extends Entity {
@Id
private String id;
private EventLog eventLog;
....
//getters and setters
}
と
public class EventLog extends Entity {
@Id
private String id;
....
//getters and setters
}
は、私は、次のインターフェイスを期待
public interface EventReactionRepository extends MongoRepository<T , String>{
Optional<EventReaction> findByEventLog_Id(String id)
}
それらのイベントログIDがid
であるeventReactionsを返します。しかし、それはすでにmogoDBに存在しています。私のクエリは何も返しません!私の質問は正しいですか?