Skip to content

Commit

Permalink
Use AttributeOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
IDragonfire committed May 28, 2017
1 parent cf56112 commit 69b1508
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.yahoo.elide.annotation.UpdatePermission;
import lombok.Setter;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
Expand All @@ -25,16 +26,12 @@
@ReadPermission(expression = HasBanRead.EXPRESSION)
@CreatePermission(expression = HasBanUpdate.EXPRESSION)
@UpdatePermission(expression = HasBanUpdate.EXPRESSION)
@AttributeOverride(name = "id", column = @Column(name = "ban_id"))
public class BanRevokeData extends AbstractEntity {
private BanInfo ban;
private String reason;
private Player author;

@Column(name = "ban_id")
public Integer getId() {
return super.id;
}

@OneToOne(mappedBy = "banRevokeData")
@NotNull
public BanInfo getBan() {
Expand Down

0 comments on commit 69b1508

Please sign in to comment.