[hibernate-dev] Naming and "naming strategies"
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
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>
> 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:
>>  - I vaguely recall seeing that certain databases allow different
>>> constraints for different types of identifiers (table name, versus column
>>> name, versus constrain name, ...). Can anyone confirm that?
>> I remember db2 have this fun.
>> I believe Oracle has too but couldn't find evidence for it.
More information about the hibernate-dev