[hibernate-dev] Naming and "naming strategies"
Steve Ebersole
steve at hibernate.org
Fri Jan 30 21:33:31 EST 2015
So here is what I have for implicit naming strategy, in simplified form:
1. Table naming
1. Entity primary table - @Table
2. Join table - @JoinTable
3. Collection table - @CollectionTable
4. <secondary table are required to be explicitly named>
2. Column naming
1. basic attribute column
2. entity discriminator column
3. tenant id column
4. @Any discriminator column
5. @Any key column
6. @JoinColumn
7. @PrimaryKeyJoinColumn
Especially as far as column naming goes, can anyone see any I am missing?
On Fri, Jan 23, 2015 at 10:43 AM, Steve Ebersole <steve at hibernate.org>
wrote:
> Thanks Max for validating I am not going insane... at least in regards to
> this :)
>
> On Fri, Jan 23, 2015 at 10:19 AM, Max Rydahl Andersen <manderse at redhat.com
> > wrote:
>
>> On 23 Jan 2015, at 14:18, Steve Ebersole wrote:
>>
>> [1] - I vaguely recall seeing that certain databases allow different
>>> length
>>> constraints for different types of identifiers (table name, versus column
>>> name, versus constrain name, ...). Can anyone confirm that?
>>>
>>
>> I remember db2 have this fun.
>>
>> http://bytes.com/topic/db2/answers/183320-maximum-length-
>> table-names-colums-etc
>>
>> I believe Oracle has too but couldn't find evidence for it.
>>
>> /max
>> http://about.me/maxandersen
>>
>
>
More information about the hibernate-dev
mailing list