Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Wish List
-
Component/s: DSL for Services
-
Labels:None
Description
In the business domain you can model unique fields for a Business Domain class.
In the service model this information can be used to declare getBy services.
Via codecompletion the available names of the unique rules ("unique" keyword) should be presented to the developer.
So...
Class Person [
...
Rules [
"The combination of first- and last name of a person must be unique"
unique fullName [firstName lastName]
]
]
should result in a service method like this:
public Person getByFullName(String firstName, String lastName);
Although not as nice, the new search by example functionality allows searching on unique field as well.