I have one table called Message and another table called MessageText, and relation for 2 tables is one to many.
I created entity for each table.
and
and I also have a MessageRepository which is the repository for Message Entity, it has method save(Message m).
For
test part, I populated each field of Message and MessageText entity, for the join column messageid, I set it to be the same for them,
then call MessasgeRepository.save(Message);
but it always complain that the messageid in Table MessageText can not be null.