| |
| import ns org.osbp.mysmartshop.entities.BaseID |
| import ns org.osbp.mysmartshop.entities.BaseUUID |
| import ns org.osbp.mysmartshop.entities.DtoTestParent |
| import ns org.osbp.mysmartshop.entities.DtoTestChildContainment |
| import ns org.osbp.mysmartshop.entities.DtoTestChildCrossRef |
| import ns org.osbp.mysmartshop.entities.DtoTestBean |
| import ns org.osbp.mysmartshop.entities.Mcustomer |
| import ns org.osbp.mysmartshop.entities.CashRegister |
| import ns org.osbp.mysmartshop.entities.CashSlip |
| import ns org.osbp.mysmartshop.entities.CashPosition |
| import ns org.osbp.mysmartshop.entities.CashPayment |
| import ns org.osbp.mysmartshop.entities.CashPaymentMethod |
| import ns org.osbp.mysmartshop.entities.CompanyRelationType |
| import ns org.osbp.mysmartshop.entities.CompanyGroup |
| import ns org.osbp.mysmartshop.entities.Company |
| import ns org.osbp.mysmartshop.entities.Address |
| import ns org.osbp.mysmartshop.entities.Department |
| import ns org.osbp.mysmartshop.entities.Bar |
| import ns org.osbp.mysmartshop.entities.Test |
| import ns org.osbp.mysmartshop.entities.CashSubPosition |
| package org.osbp.mysmartshop.dtos { |
| |
| autoDto BaseIDDto wraps BaseID { |
| |
| inheritVar id |
| inheritVar version |
| } |
| |
| autoDto BaseUUIDDto wraps BaseUUID { |
| |
| inheritVar id |
| inheritVar version |
| } |
| |
| autoDto BarDto extends BaseUUIDDto wraps Bar { |
| |
| inheritVar fooxxx |
| } |
| |
| autoDto DtoTestParentDto extends BaseUUIDDto wraps DtoTestParent { |
| |
| def String foo( ) { |
| return if( beanx !== null ) "X" else "Y" |
| } |
| |
| def void foo2( ) { |
| setString( "xxyy" ); |
| } |
| |
| inheritVar string |
| inheritRef containmentChilds mapto DtoTestChildContainmentDto |
| inheritRef crossRefChilds mapto DtoTestChildCrossRefDto |
| inheritRef crossRefChild mapto DtoTestChildCrossRefDto |
| inheritVar beanx mapto DtoTestBeanDto |
| |
| } |
| |
| autoDto DtoTestChildContainmentDto extends BaseUUIDDto wraps DtoTestChildContainment { |
| |
| inheritRef container mapto DtoTestParentDto |
| } |
| |
| autoDto DtoTestChildCrossRefDto extends BaseUUIDDto wraps DtoTestChildCrossRef { |
| |
| inheritRef container mapto DtoTestParentDto |
| } |
| |
| autoDto DtoTestBeanDto wraps DtoTestBean { |
| |
| inheritVar foo |
| inheritRef crossRefChild mapto DtoTestChildCrossRefDto |
| } |
| |
| autoDto McustomerDto extends BaseIDDto wraps Mcustomer { |
| |
| inheritVar account_num |
| inheritVar lname |
| inheritVar fname |
| inheritVar mi |
| inheritVar address1 |
| inheritVar address2 |
| inheritVar address3 |
| inheritVar address4 |
| inheritVar city |
| inheritVar state_province |
| inheritVar postal_code |
| inheritVar country |
| inheritVar phone1 |
| inheritVar phone2 |
| inheritVar birthdate |
| inheritVar marital_status |
| inheritVar yearly_income |
| inheritVar gender |
| inheritVar total_children |
| inheritVar num_children_at_home |
| inheritVar education |
| inheritVar date_accnt_opened |
| inheritVar member_card |
| inheritVar occupation |
| inheritVar houseowner |
| inheritVar num_cars_owned |
| inheritVar fullname |
| inheritVar test |
| inheritRef slips mapto CashSlipDto |
| inheritVar foo |
| } |
| |
| autoDto CashRegisterDto extends BaseUUIDDto wraps CashRegister { |
| |
| inheritVar num |
| inheritVar ip |
| inheritVar location |
| inheritVar currentDay |
| inheritRef slips mapto CashSlipDto |
| } |
| |
| autoDto CashSlipDto extends BaseUUIDDto wraps CashSlip { |
| |
| inheritVar currentDay |
| inheritVar now |
| inheritVar cashier |
| inheritVar total |
| inheritVar serial |
| inheritVar payed |
| inheritRef positions mapto CashPositionDto |
| inheritRef customer mapto McustomerDto |
| inheritRef register mapto CashRegisterDto |
| inheritRef payments mapto CashPaymentDto |
| } |
| |
| autoDto CashPositionDto extends BaseUUIDDto wraps CashPosition { |
| |
| inheritRef slip mapto CashSlipDto |
| inheritVar now |
| inheritVar quantity |
| inheritVar price |
| inheritVar amount |
| inheritRef subPositions mapto CashSubPositionDto |
| } |
| |
| autoDto CashSubPositionDto extends BaseUUIDDto wraps CashSubPosition { |
| |
| inheritVar quantity |
| inheritVar price |
| inheritRef parent mapto CashPositionDto |
| } |
| |
| autoDto CashPaymentDto extends BaseUUIDDto wraps CashPayment { |
| |
| inheritVar now |
| inheritVar payed |
| inheritRef slip mapto CashSlipDto |
| inheritRef methodOfPayment mapto CashPaymentMethodDto |
| } |
| |
| autoDto CashPaymentMethodDto extends BaseUUIDDto wraps CashPaymentMethod { |
| |
| inheritVar num |
| inheritVar name |
| inheritVar credit |
| inheritVar imageName |
| inheritVar lowerLimit |
| inheritRef payments mapto CashPaymentDto |
| } |
| |
| autoDto CompanyRelationTypeDto extends BaseUUIDDto wraps CompanyRelationType { |
| |
| inheritVar name |
| inheritVar description |
| } |
| |
| autoDto CompanyGroupDto extends BaseUUIDDto wraps CompanyGroup { |
| |
| inheritVar name |
| inheritVar description |
| inheritRef main_company mapto CompanyDto |
| inheritRef companies mapto CompanyDto |
| } |
| |
| autoDto CompanyDto extends BaseUUIDDto wraps Company { |
| |
| inheritRef company_group mapto CompanyGroupDto |
| inheritVar name |
| inheritVar description |
| inheritRef relation_type mapto CompanyRelationTypeDto |
| inheritRef address mapto AddressDto |
| inheritRef departments mapto DepartmentDto |
| } |
| |
| autoDto AddressDto extends BaseUUIDDto wraps Address { |
| |
| inheritRef company mapto CompanyDto |
| inheritRef department mapto DepartmentDto |
| inheritVar address1 |
| inheritVar address2 |
| inheritVar city |
| inheritVar state_province |
| inheritVar postal_code |
| inheritVar country |
| inheritVar email |
| inheritVar landline |
| inheritVar mobile |
| } |
| |
| autoDto DepartmentDto extends BaseUUIDDto wraps Department { |
| |
| inheritRef company mapto CompanyDto |
| inheritVar name |
| inheritVar description |
| inheritRef address mapto AddressDto |
| inheritVar default_yearly_income |
| } |
| |
| autoDto TestDto extends BaseUUIDDto wraps Test { |
| } |
| } |