Package

org.squeryl

annotations

Permalink

package annotations

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. annotations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    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

    Permalink
  3. final class FieldToColumnCorrespondanceMode extends Enum[FieldToColumnCorrespondanceMode]

    Permalink
  4. class OptionType extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  5. class Row extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  6. class Transient extends Annotation with Annotation with ClassfileAnnotation

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped