blob: 902c461ac0ce58e9bdf813cfe2b0a86d9f801810 [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.dtos {
/* Imports the required artifacts */
import org.eclipse.osbp.entitydsl.samples.sample03.*;
import org.eclipse.osbp.entitydsl.samples.sample03.dtos.*;
import org.eclipse.osbp.entitydsl.samples.sample03.dtos.mapper.*;
datatype wrapped_int jvmType java.lang.Integer;
datatype dat dateType date;
datatype tim dateType timestamp;
datatype binarydata as blob;
autoDto WorkerDto wraps Worker {
inherit var id;
inherit var name;
inherit var employeenumber;
inherit var insurancenumber;
inherit var birthdate;
inherit var lastpromotion;
inherit var photo;
}
}