[hibernate-dev] database names and identifier length

Max Rydahl Andersen manderse at redhat.com
Fri Jul 24 14:42:46 EDT 2015


On 24 Jul 2015, at 16:48, Steve Ebersole wrote:

> Do we want to consider automatically applying known database limits on
> various identifier lengths?  This is trickier to implement than it 
> might
> sound.  And it would definitely need to wait for the reworking of
> annotation binding.  But in general I wonder if y'all see this as a
> desirable feature.  And if so, should that be just for implicit names? 
>  Or
> explicit names as well?

I could see it be valuable for easier cross db testing, but all users 
custom queries
would be easily broken unless you have something very deterministic.

If we do it think I as a user would prefer at least get a warning or be 
able to turn on "strict" mode
to catch issues where  I did not realise 
"MY_SUPER_AWESOME_COLUMN_NAME_CANT_ALWAYS_BE_USED".

/max
http://about.me/maxandersen


More information about the hibernate-dev mailing list