Passing fk in json via rest call as part of DerivedIdentities
问题 A short summary : I got a Product entity that has an embedded key (id,manufacturer). I'm passing through rest call the product entity with fk of the manufacturer : { "name":"Chocolate", "register_date":"19/03/2020", "manufacturer_id": 52, "rating":"Amazing" } When I try to save the entity in the controller I'm getting the following error java.lang.IllegalArgumentException: Can not set com.dao.Manufacturer field com.dao.ProductId.manufacturer to java.lang.Long Product : @Getter @Setter