Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class YourClass {
  2. @GeneratedId
  3. private int id;
  4.  
  5. @ForeignCollectionField
  6. private Collection<MyString> bunchOfStrings = new ArrayList<MyString>();
  7. }
  8.  
  9. public class MyString{
  10. @DatabaseField(canBeNull = true, foreign = true)
  11. private YourClass yourClass;
  12.  
  13. @DatabaseField
  14. private String text;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement