Merge branch '62-fix-constraints-in-trigger' into 'dev'

fix

Closes #62

See merge request sa4-2020/the-sanmarinoes/backend!90
This commit is contained in:
Matteo Omenetti 2020-04-26 13:33:38 +02:00
commit 0383a547c1

View file

@ -26,7 +26,7 @@ public abstract class Trigger<D extends Device> {
@ApiModelProperty(hidden = true)
private long id;
@ManyToOne(targetEntity = OutputDevice.class)
@ManyToOne(targetEntity = Device.class)
@JoinColumn(name = "device_id", updatable = false, insertable = false)
@GsonExclude
private D device;