Invalid warning message produced by metamodel generator when using embeddable with bidirectional mapping

Description

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

Attachments

1
  • 06 Jun 2024, 01:03 PM

Activity

Details

Assignee

Reporter

Priority

Created June 6, 2024 at 1:04 PM
Updated June 6, 2024 at 1:04 PM

Flag notifications