You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer
I would like to be able to encapsulate the currently supported ID types like Integer, Long, String etc inside a custom simple value type
So that I can use a domain type for the ID
For instance suppose a products table with a primary key of product ID, where product IDs are strings which must follow a specific format of - for instance - two letters followed by two numbers.
Instead of passing a string around my program as the ID type, I would like to be able to create a ProductId class which enforces the validity of the IDs, and use the ProductId as the ID type in my entity.
As a developer
I would like to be able to encapsulate the currently supported ID types like Integer, Long, String etc inside a custom simple value type
So that I can use a domain type for the ID
For instance suppose a products table with a primary key of product ID, where product IDs are strings which must follow a specific format of - for instance - two letters followed by two numbers.
Instead of passing a string around my program as the ID type, I would like to be able to create a
ProductId
class which enforces the validity of the IDs, and use the ProductId as the ID type in my entity.Would possible be solved by #574
The text was updated successfully, but these errors were encountered: