Quantcast
Channel: BlogoSfera » populate
Viewing all articles
Browse latest Browse all 10

RequestMapping Unable to populate Entity class where fields within EmbeddedId

$
0
0

I have the following Entity class: @Entity @Table(name="reporteddevicedata", schema="schemaName") public class MobileDeviceData { @EmbeddedId MobileDeviceDataId mobileDeviceDataId; @Column(name="activitydetecteddate") private ZonedDateTime activityDetectedDate; ...... } @Embeddable class MobileDeviceDataId implements Serializable { @Column(name="clientid") private int clientId; @Column(name="flagid") private int flagId; } My Controller code looks like this: @RequestMapping(value="/mobile/device", method = RequestMethod.PUT) public ResponseEntity<Object> flagDevice (@RequestBody List<MobileDeviceData> deviceInfoList) { // […]

The post RequestMapping Unable to populate Entity class where fields within EmbeddedId appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 10

Trending Articles