-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Master
-
Component/s: Core Infrastructure
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Epic/Theme:
-
Git Pull Request:
Domain Specific Language API generator for hand coded finder implementations.
Main goals of new API
- Disallow syntax errors and using database specific clauses
- Create compile time safety checking for table references between modules
- Merge locations of SQL with usage to reduce mistakes in finder implementations
- Merge SQL generation API with parameter binding API to ensure type safety and correct query parameter binding
- Easier lookups for DB table sync when using Hibernate
- Add potential for caching multi-table queries
- Add potential for safer SQL based APIs
Notes
- The SPI does not need to be referenced by DSL users unless they are integrating the DSL usage with a DB or rewriting queries dynamically
- All classes in the SPI are immutable to preserve easier debugging of queries and much of the "feel" from string queries
- Aliasing is fully supported but can be a challenge to use correctly because of immutability
- Database translation for functions is performed by code in kernel
Example Usages
- causes
-
LPS-111632 Class Not Found Failure on modules-unit-jdk8 - analytics-reports-journal-impl
-
- Closed
-
- fixes
-
LPS-98680 Confusing log output when building service with persistence disabled
- Closed
- is related to
-
LPS-112857 Add DSLQuery integration for generated services and persistences
-
- Closed
-