Skip to content

Instantly share code, notes, and snippets.

@etki
Created October 30, 2015 12:36
Show Gist options
  • Save etki/7da325ea02eced43eae6 to your computer and use it in GitHub Desktop.
Save etki/7da325ea02eced43eae6 to your computer and use it in GitHub Desktop.
if (stem.getAttributeA() != null) {
entity.setAttributeA(stem.getAttributeA());
}
if (stem.getAttributeB() != null) {
entity.setAttributeB(stem.getAttributeB());
}
if (stem.getAttributeC() != null) {
entity.setAttributeC(stem.getAttributeC());
}
if (stem.getAttributeD() != null) {
entity.setAttributeC(stem.getAttributeD());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment