Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created July 5, 2016 13:36
Show Gist options
  • Save cosbor11/2ae9778387e3e23a1fe30554d6798b58 to your computer and use it in GitHub Desktop.
Save cosbor11/2ae9778387e3e23a1fe30554d6798b58 to your computer and use it in GitHub Desktop.
Payment entity before model updates
@Entity
public class Payment extends ManagedEntity implements IManagedEntity
{
@Attribute
@Identifier
protected long paymentId;
@Relationship(type = RelationshipType.ONE_TO_ONE,
inverse = "payments",
inverseClass = Invoice.class)
protected Invoice invoice;
@Index
@Attribute
protected double amount;
@Attribute
protected String notes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment