blob: 5a7a2bdcd90ea5ab73108f3d482cd9b310b9d312 [file] [log] [blame]
/**
* Declaring datatypes in the Lunifera Entity DSL:
*
* There are three kinds of datatype declarations: jvmTypes, dateTypes and blobs.
*
* Declaring a jvmType allows the specification of the JVM Datatype to be used in
* the generated Java code. Adding "as primitive" triggers the use of primitive
* datatypes (where applicable).
*
* Temporal Datetypes can be date, time and timestamp.
*
* Blobs can be declared by using the "as blob" keyword and are translated to a
* byte array in the Java code.
*/
package org.eclipse.osbp.entitydsl.samples.sample03 {
datatype wrapped_int jvmType java.lang.Integer;
datatype dat dateType date;
datatype tim dateType timestamp;
datatype binarydata as blob;
entity Worker {
uuid String id;
var String name;
var int employeenumber;
var wrapped_int insurancenumber;
var dat birthdate;
var tim lastpromotion;
var binarydata photo;
}
}