Details
Assignee
UnassignedUnassignedReporter
Bartlomiej NiemiecBartlomiej NiemiecComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Bartlomiej Niemiec
Bartlomiej NiemiecComponents
Affects versions
Priority
Created June 6, 2024 at 1:04 PM
Updated June 6, 2024 at 1:04 PM
I have following entities:
@Entity public class Primary { @Id private int id; @Embedded private Component component; //rest of the code @Embeddable public class Component implements Serializable { @OneToMany(mappedBy = "primary") private List<Secondary> secondaries; //rest of the code @Entity public class Secondary { @Id private int id; @ManyToOne private Primary primary; //rest of the code
during compilation hibernate modelgen produces message:
[WARNING] diagnostic: /src/main/java/org/hibernate/bugs/Component.java:15: warning: member 'primary' of 'Secondary' is not of type 'Component' @OneToMany(mappedBy = "primary") ^
which is invalid in context of used mappings