The name of the database column
When true, will cause Schema generation to declare as PrimaryKey, Note that for KeyedEntity[]s, declaredAsPrimaryKeyInSchema is always true, and the cannot be made otherwise, the inverse is not true, a field can be declared as primary key in the Shema without it being the id of a KeyedEntity[], ex.
When true, will cause Schema generation to declare as PrimaryKey, Note that for KeyedEntity[]s, declaredAsPrimaryKeyInSchema is always true, and the cannot be made otherwise, the inverse is not true, a field can be declared as primary key in the Shema without it being the id of a KeyedEntity[], ex. :
on(myTable)(t =>declare( myField.is(primaryKey) // myField doesn't need to be a KeyedEntity.id ))
on(myKeyedEntityTable)(t =>declare( id.is(autoIncremented) // omiting primaryKey here has no effect, it is equivalent as id.is(primaryKey,autoIncremented) ))
The db column type declaration overriden in the schema, if None, it means that it is the default value for the adapter (see Correspondance of field types to database column types http://squeryl.
The db column type declaration overriden in the schema, if None, it means that it is the default value for the adapter (see Correspondance of field types to database column types http://squeryl.org/schema-definition.html)
gets the value of the field from the object.
gets the value of the field from the object. Note that it will unwrap Option[] and return null instead of None, i.e. if converts None and Some to null and some.get respectively
Inserts will only set values for a column if isInsertable is true
Updates will only set values for a column if isUpdatable is true
the length defined in org.squeryl.annotations.Column.length if it is defined, or the default length for Java primitive types. The unit of the length is dependent on the type, the convention is that numeric types have a length in byte, boolean is bits date has -1, and for string the lenght is in chars. double,long -> 8, float,int -> 4, byte -> 1, boolean -> 1 java.util.Date -> -1.
The use of this field is to help custom schema generators select the most appropriate column type
Sets the value 'v' to the object, the value will be converted to Some or None if the field is an Option[], (if isOption).