It seems that adding an extra @javax.persistence.ElementCollection fixes or works around this issue, but it would be nice to learn, if this is a recommended way or if this is a bug that can be fixed somehow.