This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Recursive List of Objects, mapping and persistence.  RSS feed

 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I need to know how to save classes, mapping and persistence, which contains a list of it's own class (menu itens):


ItemClass{
List<ItemClass>item;
}


Item {Item,Item{Item,Item{Item,Item},Item}},Item



My actual main class for test->



Entity Class

This approach of using father instance (botaoPai) in variable I saw in one site, and I know I even did it in main menu, because in this way I don't know how I recover its as a List.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36616
474
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, I don't understand the question. Do you get an error message? Does something in particular not work?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!