Packages

p

org.squeryl

annotations

package annotations

Source
package.scala
Linear Supertypes
AnyRef, Any

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. trait ColumnBase extends Annotation
    Annotations
    @Retention()
  3. sealed abstract final class FieldToColumnCorrespondanceMode extends Enum[FieldToColumnCorrespondanceMode]

    See also

    org.squeryl.annotations.Row

  4. trait OptionType extends Annotation
    Annotations
    @Retention()
  5. trait Row extends Annotation
    Annotations
    @Retention()
  6. trait Transient extends Annotation
    Annotations
    @Retention()

Inherited from AnyRef

Inherited from Any

Ungrouped