case classTableName(name: String) extends Annotation with StaticAnnotation with Product with Serializable
Specifies that the TableName that represents the Scala Class (or entity).
Used when the default Scala identifier to database table name conversion
is not correct for you schema.
name
the name of the table in the database
Example:
// the entity 'Book' will be named 'novel' in the database
\@TableName("novel")
caseclass Book (
bookId: Int
name: String
)
Linear Supertypes
Serializable, Serializable, Product, Equals, StaticAnnotation, Annotation, AnyRef, Any
Specifies that the TableName that represents the Scala Class (or entity). Used when the default Scala identifier to database table name conversion is not correct for you schema.
the name of the table in the database
Example: