-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new entity for case accounts. issue #1955
- Loading branch information
1 parent
0dd6dbb
commit bd61ad7
Showing
8 changed files
with
2,352 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
949 changes: 949 additions & 0 deletions
949
j-lawyer-server-entities/src/java/com/jdimension/jlawyer/persistence/CaseAccountEntry.java
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
j-lawyer-server-entities/src/java/db/migration/V2_6_0_10__AddCaseAccount.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE TABLE case_account_entries ( | ||
`id` VARCHAR(50) BINARY NOT NULL, | ||
`entry_date` datetime default NULL, | ||
`contact_id` VARCHAR(50) BINARY, | ||
`case_id` VARCHAR(50) BINARY NOT NULL, | ||
`invoice_id` VARCHAR(50) BINARY, | ||
`description` VARCHAR(1500) BINARY, | ||
`in_earnings` FLOAT DEFAULT 0, | ||
`out_spendings` FLOAT DEFAULT 0, | ||
`in_escrow` FLOAT DEFAULT 0, | ||
`out_escrow` FLOAT DEFAULT 0, | ||
`in_expenditure` FLOAT DEFAULT 0, | ||
`out_expenditure` FLOAT DEFAULT 0, | ||
CONSTRAINT `pk_caseaccounts` PRIMARY KEY (`id`), | ||
FOREIGN KEY (contact_id) REFERENCES contacts(id) ON DELETE SET NULL, | ||
FOREIGN KEY (case_id) REFERENCES cases(id) ON DELETE CASCADE, | ||
FOREIGN KEY (invoice_id) REFERENCES invoices(id) ON DELETE SET NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
insert into server_settings(settingKey, settingValue) values('jlawyer.server.database.version','2.6.0.10') ON DUPLICATE KEY UPDATE settingValue = '2.6.0.10'; | ||
commit; |
Binary file not shown.
This file contains 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
689 changes: 689 additions & 0 deletions
689
...lawyer-server-ejb/src/java/com/jdimension/jlawyer/persistence/CaseAccountEntryFacade.java
Large diffs are not rendered by default.
Oops, something went wrong.
690 changes: 690 additions & 0 deletions
690
...r-server-ejb/src/java/com/jdimension/jlawyer/persistence/CaseAccountEntryFacadeLocal.java
Large diffs are not rendered by default.
Oops, something went wrong.