Skip to content

Instantly share code, notes, and snippets.

@s4ke
Created May 13, 2015 13:46
@Entity
@Table(name = "VendorUpdates")
@Updates(tableName = "VendorUpdates", originalTableName = "Vendor")
public class VendorUpdates {
@Id
private Long id;
@IdFor(entityClass = Vendor.class, columns = "vendorId", columnsInOriginal = "id")
@Column
private Long vendorId;
@Event(column = "eventType")
@Column
private Integer eventType;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVendorId() {
return vendorId;
}
public void setVendorId(Long vendorId) {
this.vendorId = vendorId;
}
public Integer getEventType() {
return eventType;
}
public void setEventType(Integer eventType) {
this.eventType = eventType;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment