I have a problem with my hibernate mapping using EmbeddedId. My code looks like these:
Inventory:
public class Inventory {
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "inventory_id")
public Long getId() {
return ...