Created
July 12, 2016 02:13
-
-
Save cosbor11/bdac1247eb2cef7dc02fc454ffdb9421 to your computer and use it in GitHub Desktop.
Modify Payment Indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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