-
Notifications
You must be signed in to change notification settings - Fork 7
Entity Properties
homedirectory edited this page Sep 10, 2024
·
6 revisions
Composite key -- property key with type DynamicEntityKey.
Its nature is that of a calculated property. Its string representation is a concatenation of values for all key member properties, separated by the specified separator ( by default).
Property P declared by entity E represents a one-to-one association if:
-
Pis of an entity typePE. -
PEhas key typeKandK <= E(in terms of subtyping) and (Kis persistent or synthetic-based-on-persistent).
Example:
@KeyType(String.class)
class Vehicle extends AbstractPersistentEntity<String> {
// one-to-one association
@IsProperty VehicleDetails details;
}
@KeyType(Vehicle.class)
class VehicleDetails extends AbstractPersistentEntity<Vehicle> {}Here, property Vehicle.details is implicitly calculated.
The value of Vehicle.details for any given Vehicle v will be calculated
to find the VehicleDetails associated with v, if such an association indeed exists
(thus, Vehicle.details is also nullable).
Specifically, the EQL expression for Vehicle.details will be the following:
select(VehicleDetails.class).where().prop("key").eq().extProp("id").model()Per aspera ad astra
- Web UI Design and Web API
- Safe Communication and User Authentication
- Gitworkflow
- JavaScript: Testing with Maven
- Java Application Profiling
-
TG Development Guidelines
- TG Releases
- TLS and HAProxy for development
- TG Development Checklist
- Entity
- Entities and their validation
- Entity Properties
- Entity Type Enhancement
- EQL
- Tooltip How To
- All about Matchers
- All about Fetch Models
- Streaming data
- Synthetic entities
- Activatable entities
- Jasper Reports
- Opening Compound Master from another Compound Master
- Window management test plan
- Multi Time Zone Environment
- GraphQL Web API
- Guice
- Maven
- RichText Data Migration
- Full Text Search
- Deployment recipes
- Application Configuration
- Observability
- JRebel Installation and Integration
- Compile-time mechanisms
- Work in progress