@Table(name = "discount_code")
@SecondaryTable(name = "discount_code_uses", pkJoinColumns = @PrimaryKeyJoinColumn(name = "discount_code_id", referencedColumnName = "discount_code_id"))
@org.hibernate.annotations.Table(appliesTo = "discount_code_uses", inverse = true)
@Inheritance(strategy = InheritanceType.JOINED)