extjs4 如何根据grid创建store,model等组件

在开发中每次都要写store,model,开发效率比较低。请问有没有比较好的方法,省去store,model等代码的编写。
根据grid的情况去创建store?比如:我重写了grid,
Ext.extend(Ext.grid.GridPanel, {
gridColumns:null,//grid的列
url:""//url,根据该url生成store
});
我知道grid的显示的列,以及需要请求的url地址,怎么去生成store和model。需要extjs4.x,求解

根据url来生成store,有点没道理,如果想根据columns来生成倒是可行的。重写grid,通过遍历columns的dataIndex来构造store,可以不用写model的,直接用store的构造。