Created
May 29, 2011 15:50
-
-
Save Thomvis/997880 to your computer and use it in GitHub Desktop.
Example to illustrate a use case of key-creation in GWT
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
interface HasReferences { | |
// just an interface, | |
} | |
@Entity | |
public class Person implements HasReferences { | |
// ... | |
} | |
@Entity | |
public class Company implements HasReferences { | |
// ... | |
} | |
// somewhere in GWT: | |
List<HasReferences> hasReferences = getHasReferences(); | |
for (HasReferences hr : hasReferences) { | |
Key<? extends HasReferences> k = ???; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment