Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created July 12, 2016 02:13
Show Gist options
  • Save cosbor11/bdac1247eb2cef7dc02fc454ffdb9421 to your computer and use it in GitHub Desktop.
Save cosbor11/bdac1247eb2cef7dc02fc454ffdb9421 to your computer and use it in GitHub Desktop.
Modify Payment Indexes
@Entity
public class Payment extends ManagedEntity implements IManagedEntity
{
@Attribute
@Identifier
protected long paymentId;
@Relationship(type = RelationshipType.MANY_TO_ONE,
inverse = "payments",
inverseClass = Invoice.class)
protected Invoice invoice;
// Note, I have removed an index
// @Index
@Attribute
protected double amount;
// Note, I have added an index to notes
@Attribute
@Index
protected String notes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment