Home > Software engineering >  how auto-generated constraint name was created in spring?
how auto-generated constraint name was created in spring?

Time:07-09

I'm curious to know how auto-generated constraint names are created in spring? As we know, it's identical in various environment after deployment phase. Is it a hashed string?

CodePudding user response:

As David Codrad suggested, I dug further into the code and came across this code snippet. It seems that before hashing process (by MD5), the name of the table with the names of the columns are attached to each other.

  • Related