我正在把ORMLite延伸到安的安托。
www.un.org/Depts/DGACM/index_spanish.htm 我想做的是。
I want to reproduce one of the behavior that Doctrine and Symfony are achieving in PHP with models. In a word:
- From a yml file generate a bunch of BaseModel class with accessors and things that won t change.
- Let the real model inherits from this BaseModel so that the user changes could persist even if they regenerate the models from the yml.
My question
我很想知道,这在实践中是否好,能否试图在安乐施上实现这样一个目标,或者这是否会在业绩(大量使用继承)方面带来风险。
If you think that it is clumsy, how can I allow the user to change the .yml file, generate the model and do no start from scratch rebuilding the customized aspects of his model. I know this can be done by some "trick" but I really would like not to reinvent the wheel.
EDIT
Sorry, I forgot to add: I am using python to do this.
增 编