org.squeryl

annotations

package annotations

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. annotations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Column = org.squeryl.annotations.ColumnBase @scala.annotation.meta.field

    The preferred way to define column metadata is not not define them (!) Squeryl has default mappings for all Java primitive types.

    The preferred way to define column metadata is not not define them (!) Squeryl has default mappings for all Java primitive types. Scala/Java Int/int -> 4 byte number Long/long -> 8 byte number Float/float -> 4 byte floating point String -> varchar(256)

    The default mappings can be overridden at the field/column level using the Column attribute, and they can also be overridden at the Schema level by overriding the method. For example, the following causes all string field in the schema to become varchars of length 64 :

    override def columnTypeFor(fieldMetaData: FieldMetaData, databaseAdapter: DatabaseAdapter) = if(fieldMetaData.isStringType) return "varchar(64)" else super.columnTypeFor(fieldMetaData, databaseAdapter)

  2. class ColumnBase extends Annotation with Annotation with ClassfileAnnotation

  3. class FieldToColumnCorrespondanceMode extends Enum[FieldToColumnCorrespondanceMode]

  4. class OptionType extends Annotation with Annotation with ClassfileAnnotation

  5. class Row extends Annotation with Annotation with ClassfileAnnotation

  6. class Transient extends Annotation with Annotation with ClassfileAnnotation

Inherited from AnyRef

Inherited from Any

Ungrouped