Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow per-entity definition of custom base class #94

Merged
merged 1 commit into from
Mar 9, 2012

Conversation

protocool
Copy link
Contributor

I often use a custom base class to supply general utility routines for my managed objects.

Occasionally those utility routines are specific to a certain subset of my Entities.

This pull request allows you to override the custom base class per-Entity by way of a key/value pair in the Entity userInfo (mogenerator.customBaseClass).

It treats the userInfo-defined custom base class as a 'forced' custom base class for just that Entity, overriding any command line argument for --base-class-force.

@rentzsch
Copy link
Owner

rentzsch commented Mar 9, 2012

Looks good, thanks!

rentzsch added a commit that referenced this pull request Mar 9, 2012
[NEW] Per-entity custom base classes via `mogenerator.customBaseClass` entity userinfo key (overrides `--base-class-force`). ([Trevor Squires](#94))
@rentzsch rentzsch merged commit 029b653 into rentzsch:master Mar 9, 2012
ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
[NEW] Per-entity custom base classes via `mogenerator.customBaseClass` entity userinfo key (overrides `--base-class-force`). ([Trevor Squires](rentzsch#94))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants