Repository
svn://svn.opentaps.org/opentaps_all/versions/1.0/trunk
/versions/1.0/trunk
by
jwickers
on
2009-02-21 14:36
(about 1 year ago)
#759
Added more information passed down to the entity expections:
- EntityException: gives the entity class
- EntityNotFoundException: gives the entity class, and optionally the PK
Added a default message in EntityNotFoundException, Repository findOneNotNull methods that does not have a message set will use it.
Added a test in EntityTests that check that the class and pk are part of the message.
| Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed | |
|---|---|---|---|---|---|---|---|
| Java | 96 | 44 | 112 | 17 | 10 | 0 |
| File | Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed |
|---|---|---|---|---|---|---|---|
hot-deploy/financials/src/org/opentaps/financials/domain/ledger/LedgerRepository.java
|
|||||||
| Java | 1 | 1 | 0 | 0 | 0 | 0 | |
hot-deploy/opentaps-common/src/common/org/opentaps/foundation/entity/EntityException.java
|
|||||||
| Java | 14 | 3 | 33 | 3 | 3 | 0 | |
hot-deploy/opentaps-common/src/common/org/opentaps/foundation/entity/EntityNotFoundException.java
|
|||||||
| Java | 27 | 6 | 53 | 3 | 7 | 0 | |
hot-deploy/opentaps-common/src/common/org/opentaps/foundation/repository/ofbiz/Repository.java
|
|||||||
| Java | 14 | 14 | 0 | 0 | 0 | 0 | |
hot-deploy/opentaps-common/src/common/org/opentaps/foundation/util/FoundationUtils.java
|
|||||||
| Java | 2 | 2 | 0 | 0 | 0 | 0 | |
hot-deploy/opentaps-tests/src/org/opentaps/tests/entity/EntityTests.java
|
|||||||
| Java | 37 | 17 | 26 | 11 | 0 | 0 | |
hot-deploy/warehouse/src/org/opentaps/warehouse/domain/manufacturing/ManufacturingRepository.java
|
|||||||
| Java | 1 | 1 | 0 | 0 | 0 | 0 | |