Using the Fluent API seems to have more flexibility.
So, I choose the way to follow, always use the Fluent API to determine the function that it has in db, instead of using annotations.
But here is the problem, I could not find a way to set the minimum length. Is there any way to accomplish this?
And I notice that there is not much to discuss this issue. How popular is the Fluent API?
We hope that we will choose the right part.
source
share