Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const IndexCommodityGroup = Map.extend({
- define: {
- indexCommodityGroupID: {
- type: 'number',
- serialize: false, value: null
- },
- indexCommodityGroupName: {
- type: 'string',
- value: null
- },
- createdDateTime: {
- type: 'date',
- serialize: false, value: null
- },
- createdBy: {
- type: 'string',
- serialize: false, value: null
- },
- modifiedDateTime: {
- type: 'date',
- serialize: false, value: null
- },
- modifiedBy: {
- type: 'string',
- serialize: false, value: null
- },
- indexCommodities: {
- type: function(val,name) { return new IndexCommodity.List(val); },
- serialize: false
- },
- }
- });
- export const IndexCommodityGroupValidation = {
- indexCommodityGroupName: { length: {maximum: 255}},
- };
- IndexCommodityGroup.List = List.extend({
- Map: IndexCommodityGroup
- }, {});
- export const IndexCommodityGroupConnection = superMap({
- url: url + '/mrl/indexcommoditygroup',
- idProp: 'id',
- Map: IndexCommodityGroup,
- List: IndexCommodityGroup.List,
- Validation: IndexCommodityGroupValidation,
- name: 'indexcommoditygroup',
- algebra: new set.Algebra(set.props.id("id"))
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement