Skip to main content
Merged

Validation for invalid domain names

Related products:Software Factory

Kevin Horst
Thinkwise blogger
As a developer you have a lot of freedom when creating domains for your project.
You can choose any name you like. Herein lies a tricky situation however.

The developer can also create domains, with a name the same as default data types on the RDBMS, resulting in errors when deploying the model.

At the moment there are no default validations for these kind of easy mistakes, so rookie developers can create these invalid domains and don't know why they are not allowed.

To make the Software Factory as easy to use as can be, it would be beneficial to included these validations.
Did this topic help you find an answer to your question?
This topic has been closed for replies.

4 replies

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Hello Kevin,

There already is a validation called "Domain name is a reserved keyword".

As consequence it says "The domain cannot be correctly applied." As solution it says "Modify the domain name so that it no longer appears in the list of reserved keywords. The list of reserved keywords is given in the advanced menu under Master Data, Software and Programming Languages."

If the list of reserved keywords is incomplete in your opinion, can you name those keywords for me please?

Forum|alt.badge.img+3
  • Warrior
  • 63 replies
  • August 8, 2019
Now that we are on the topic, might it be beneficial to put a grouping on the reserved keywords to make a distinction between (for SQL) reserved keywords, ODBC reserved keywords, future keywords... This would make it easier to determine whether the validation has to be followed or whether it can be approved

Kevin Horst
Thinkwise blogger
Forum|alt.badge.img+5
  • Author
  • Thinkwise blogger
  • 33 replies
  • August 8, 2019
Hi Jeroen,

Most of the time new inexperienced Thinkwise developers try to create domains with a name the same as a pre-existing datatype on the database, like:

  • Int
  • Money
  • Date
  • Datetime
  • etc.
These don't show up in the validations.

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9

This topic will be closed, because of the following corresponding topic:

https://community.thinkwisesoftware.com/ideas/445


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings