| I tried the latest 5.2.18-SNAPSHOT with strange results: Does not work:
@Entity
@Table(name = "HOUSE")
public class House {
@Id @GeneratedValue
private Long id;
@Valid
@Embedded
private Room room;
}
Works (without @Id:
@Entity
@Table(name = "HOUSE")
public class House {
@GeneratedValue
private Long id;
@Valid
@Embedded
private Room room;
}
By the way I am using current Eclipse, Maven 3.5.3 and include hibernate-jpamodelgen as optional dependency to generate the meta-model. Thank you for checking it twice! |