Created
December 31, 2014 21:23
-
-
Save tylertreat/0e428bed8ca728c6fd98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FooEntity { | |
private BarEntity relatedEntity; | |
public BarEntity getRelatedEntity() { | |
if (relatedEntity == null) | |
relatedEntity = new BarEntity(); // Alternatively, this might be a database call | |
return relatedEntity; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment