blob: 81b4b1ec8bf6b3642967eb4b794219ef7d0fd08e [file] [log] [blame]
/**
* Copyright (c) 2011, 2014 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclipse.osbp.dsl.^entity.xtext.tests.selfreference {
datatype long jvmType Long as primitive;
datatype String jvmType String;
entity TreeEmployee {
id long id;
var String Name;
/* Reference to children */
ref cascade TreeEmployee[0..*] subordinates opposite boss;
/* Reference to parent */
ref TreeEmployee[1] boss;
}
}