| /** |
| * 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.classinheritance { |
| |
| datatype long jvmType Long; |
| datatype int jvmType Integer as primitive; |
| datatype String jvmType String; |
| |
| |
| |
| entity BaseByClass { |
| inheritance per class{} |
| id long id; |
| version int version; |
| } |
| |
| entity OneByClass extends BaseByClass { |
| var String name; |
| } |
| |
| entity TwoByClass extends OneByClass { |
| var long stuff; |
| } |
| |
| entity BaseBySubclass { |
| inheritance per subclass{} |
| id long id; |
| version int version; |
| } |
| |
| entity OneBySubclass extends BaseBySubclass { |
| var String name; |
| } |
| |
| entity TwoBySubclass extends OneBySubclass { |
| var long stuff; |
| } |
| |
| } |