Community
Participate
Working Groups
1 Record Customer definition record Customer/Order type Entity cust_id int {@Id}; name string; // Mark this as an Association to the OrderHeader Entity orders Order[] {@OneToMany{mappedby=OrderHeader.cust_id}} ; end record OrderHeader type Entity{@table{name = "Orders"}} // Primary key order_id int {@Id}; // Foreign key to owning Customer {@JoinColumn {name="cust_id"}}; cust_id int{@ManyToOne}; price float; // Association to owning Customer Entity {@ManyToOne} //customer Customer; end the line: orders Order[] {@OneToMany{mappedby=OrderHeader.cust_id}} ; has compilation error indicating cust_id is not recognized. When get TypeBinding for the annotation, cannot get its field, in this case the value for 'mappedby'
Paul, in the definition for Customer and OrderHeader, if I define the below two variables: aCust Customer; anOrder OrderHeader; and have the following statement: get aCust.orders from ds; Now I can the data binding for orders which belonging to customers, but cannot get data binding for customer, only can get type binding for Customer, is it possible for me to get data binding for aCust in this case? thanks
Tim had said not all functionality would be in 0.7.0, but that list was never defined. I have updated 355573 to include a list of what is supported for 0.7.0 and what is future. @ManyToMany, @ManyToOne, @OneToMany, @OneToOne, @SecondaryTables are future.
Joe, thanks very much for clarification, as those annotations you listed here are for entity association, so we only support basic SQL generation(only one table), more complex scenario will be supported in future
close it