-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Prefix / Suffix support when javaType is not specified #465
Conversation
String fullNodeName = createFullNodeName(nodeName, prefix, suffix); | ||
|
||
//Note that only the first letter of the fullNodeName will be capitalized not the node name | ||
//so prefix + nodeName becomes PrefixnodeName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent, the root name should probably be capitalized. If you define javaType
as the value that jsonschema2pojo would pick, the functionality should be identical.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Without capitalizing nodeName, I think the majority of people will be disappointed with how this behaves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
LGTM. Just needs to be squashed into a single commit. |
I'll give the rebase a try and let you know if I hit issues. |
Squashing on my local side was fairly trivial but the commit log suggests I've made things worse rather then better (5 commits vs. 3). Independently rolling back my local content or the remote content (per http://stackoverflow.com/a/588471) looks manageable but I'm somewhat worried that trying to do both will just lose all my changes (not that they are terribly difficult to reproduce in this case). |
@pwilder It looks like you merged changes from master in, instead of replaying history on it. From where you are at, you can use these steps to create the branch you need: note: assumes the remote
See if the diffs look correct:
And if the history is correct:
If everything is good, make this your master
Double check where you are at and force push back to your remote master. |
@pwilder I think what's happened here, is that you've done the correct squashing locally, but instead of force pushing back to your fork, you've pulled and merged from it instead. When you rebase those local commits, your local history is basically incompatible with what's in GitHub. At this point, you want to At this point, the easiest way to fix this is:
I'm not so worried about rebasing against upstream (I don't mind a branch showing in the history, as long as we can merge without conflicts). @ctrimble is suggesting a process that (for even more bonus points to you) keeps our central log tidy too. Once you've done the above, you can do this very easily by running:
If you have any trouble at all or you feel you're getting things into a worse state, just use |
Sorry for the delayed response, holidays have limited my availability. I started with the instructions from joe and decided to keep things simple and just follow through to the end (with a minor change to use the https url for simplicity). I'm only seeing 1 commit record and the contents of the commit looks good so hopefully this is roughly what we are looking for. It's been an interesting exercise in git submission discipline that has made clear I could benefit from some more time tinkering with the various git commands. Thank you both for the support. |
Thanks @pwilder, glad this was a useful exercise and not an exercise in frustration! 😄 |
Prefix / Suffix support when javaType is not specified
Please let me know if I need:
Thanks,
Philip