org.beangle.data.hibernate.cfg

RailsNamingStrategy

Related Doc: package cfg

class RailsNamingStrategy extends NamingStrategy with Logging with Serializable

类似Rails的数据库表名、列名命名策略

Annotations
@description() @SerialVersionUID()
Linear Supertypes
Serializable, Serializable, Logging, NamingStrategy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RailsNamingStrategy
  2. Serializable
  3. Serializable
  4. Logging
  5. NamingStrategy
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RailsNamingStrategy(policy: NamingPolicy)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def addUnderscores(name: String): String

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def classToTableName(className: String): String

    根据实体名(entityName)命名表

    根据实体名(entityName)命名表

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collectionTableName(ownerEntity: String, ownerEntityTable: String, associatedEntity: String, associatedEntityTable: String, propertyName: String): String

    Collection Table

    Collection Table

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  9. def columnName(columnName: String): String

    对配置文件起好的列名,不进行处理

    对配置文件起好的列名,不进行处理

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def foreignKeyColumnName(propertyName: String, propertyEntityName: String, propertyTableName: String, referencedColumnName: String): String

    Return the property name or propertyTableName

    Return the property name or propertyTableName

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def joinKeyColumnName(joinedColumn: String, joinedTable: String): String

    Return the argument

    Return the argument

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  18. val logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  19. def logicalCollectionColumnName(columnName: String, propertyName: String, referencedColumn: String): String

    Return the column name if explicit or the concatenation of the property name and the referenced column

    Return the column name if explicit or the concatenation of the property name and the referenced column

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  20. def logicalCollectionTableName(tableName: String, ownerEntityTable: String, associatedEntityTable: String, propertyName: String): String

    Returns either the table name if explicit or if there is an associated table, the concatenation of owner entity table and associated table otherwise the concatenation of owner entity table and the unqualified property name

    Returns either the table name if explicit or if there is an associated table, the concatenation of owner entity table and associated table otherwise the concatenation of owner entity table and the unqualified property name

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  21. def logicalColumnName(columnName: String, propertyName: String): String

    数据列的逻辑名

    数据列的逻辑名

    如果有列名,不做处理,否则按照属性自动起名.
    该策略保证columnName=logicalColumnName
    

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. val policy: NamingPolicy

  26. def propertyToColumnName(propertyName: String): String

    根据属性名自动起名

    根据属性名自动起名

    将混合大小写,带有.分割的属性描述,转换成下划线分割的名称。
    属性名字包括:简单属性、集合属性、组合属性(component.name)
    

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def tableName(tableName: String): String

    对自动起名和使体内集合配置的表名,添加前缀

    对自动起名和使体内集合配置的表名,添加前缀

    配置好的实体表名和关联表的名字都会经过此方法。
    
    

    Definition Classes
    RailsNamingStrategy → NamingStrategy
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def unqualify(qualifiedName: String): String

  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from NamingStrategy

Inherited from AnyRef

Inherited from Any

Ungrouped