import sys.db.Object; import sys.db.Types; @:keep class MySpodClass extends Object { public var theId:SId; public var int:SInt; public var double:SFloat; public var boolean:SBool; public var string:SString<255>; public var date:SDateTime; public var binary:SBinary; public var abstractType:AbstractSpodTest; public var nullInt:SNull; public var enumFlags:SFlags; @:relation(rid) public var relation:OtherSpodClass; @:relation(rnid) public var relationNullable:Null; @:relation(spid) public var next:Null; public var data:SData>; public var anEnum:SEnum; public var bytes:SBytes<2>; } @:keep class NullableSpodClass extends Object { public var theId:SId; @:relation(rnid) public var relationNullable:Null; public var data:Null>>; public var anEnum:Null>; public var int:SNull; public var double:SNull; public var boolean:SNull; public var string:SNull>; public var date:SNull; public var binary:SNull; public var abstractType:SNull>; public var nullInt:SNull; public var enumFlags:SNull>; } @:keep class ComplexClass { public var val : { name:String, array:Array }; public function new(val) { this.val = val; } } @:id(theid) @:keep class OtherSpodClass extends Object { public var theid:SInt; public var name:SString<255>; public function new(name:String) { super(); this.name =name; } } @:keep enum SpodEnum { FirstValue; SecondValue; ThirdValue; } abstract AbstractSpodTest(A) from A { public function get():A { return this; } } @:id(name) @:keep class ClassWithStringId extends Object { public var name:SString<255>; public var field:SInt; } @:keep class ClassWithStringIdRef extends Object { public var id:SId; @:relation(ref_id) public var ref:ClassWithStringId; } //issue #3828 @:keep @:skip class BaseIssueC3828 extends sys.db.Object { public var id : SInt; @:relation(ruid) public var refUser : SNull; } @:keep class IssueC3828 extends BaseIssueC3828 { } @:keep class Issue6041Table extends Object { public var id:SInt = 0; } // issue # class TLazyIssueFoo extends sys.db.Object { public var id:SId; @:relation(bid) public var bar:TLazyIssueBar; public function new(bar:TLazyIssueBar) { var lastFoo = TLazyIssueFoo.manager.select($bar == bar, { orderBy : -id, limit : 1 }, false); super(); } } class TLazyIssueBar extends sys.db.Object { public var id:SId; public var initialized:SString<255> = "bar"; }