Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.cfg
Class DefaultComponentSafeNamingStrategy

    java.lang.Object
      org.hibernate.cfg.EJB3NamingStrategy
          org.hibernate.cfg.DefaultComponentSafeNamingStrategy

All Implemented Interfaces:
  org.hibernate.cfg.NamingStrategy

    public class DefaultComponentSafeNamingStrategy

extends EJB3NamingStrategy

Author:
  Emmanuel Bernard

Field Summary
`static org.hibernate.cfg.NamingStrategy` | `INSTANCE`

Constructor Summary
`DefaultComponentSafeNamingStrategy()`

Method Summary
`protected static String` | `addUnderscores(String name)`
`String` | `collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName)`
`String` | `foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName)`
`String` | `logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn)`
`String` | `logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName)`
`String` | `logicalColumnName(String columnName, String propertyName)`
`String` | `propertyToColumnName(String propertyName)`

Methods inherited from class org.hibernate.cfg.EJB3NamingStrategy
`classToTableName, columnName, joinKeyColumnName, tableName`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### INSTANCE

    public static final org.hibernate.cfg.NamingStrategy INSTANCE

Constructor Detail

### DefaultComponentSafeNamingStrategy

    public DefaultComponentSafeNamingStrategy()

Method Detail

### addUnderscores

    protected static String addUnderscores(String name)

### propertyToColumnName

    public String propertyToColumnName(String propertyName)

  Specified by:
    `propertyToColumnName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `propertyToColumnName` in class `EJB3NamingStrategy`

### collectionTableName

    public String collectionTableName(String ownerEntity,
                                      String ownerEntityTable,
                                      String associatedEntity,
                                      String associatedEntityTable,
                                      String propertyName)

  Specified by:
    `collectionTableName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `collectionTableName` in class `EJB3NamingStrategy`

### foreignKeyColumnName

    public String foreignKeyColumnName(String propertyName,
                                       String propertyEntityName,
                                       String propertyTableName,
                                       String referencedColumnName)

  Specified by:
    `foreignKeyColumnName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `foreignKeyColumnName` in class `EJB3NamingStrategy`

### logicalColumnName

    public String logicalColumnName(String columnName,
                                    String propertyName)

  Specified by:
    `logicalColumnName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `logicalColumnName` in class `EJB3NamingStrategy`

### logicalCollectionTableName

    public String logicalCollectionTableName(String tableName,
                                             String ownerEntityTable,
                                             String associatedEntityTable,
                                             String propertyName)

  Specified by:
    `logicalCollectionTableName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `logicalCollectionTableName` in class `EJB3NamingStrategy`

### logicalCollectionColumnName

    public String logicalCollectionColumnName(String columnName,
                                              String propertyName,
                                              String referencedColumn)

  Specified by:
    `logicalCollectionColumnName` in interface `org.hibernate.cfg.NamingStrategy`
  Overrides:
    `logicalCollectionColumnName` in class `EJB3NamingStrategy`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD