• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thanks this is finished delete please  RSS feed

 
reggie johnson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I'm seriously stuck on this for hours. Any help or direction would be awesome.
Thanks a lot ladies and gents I'm just starting out and want to become a pro. This should be simple to a professional but advanced to a beginner If you can't help I truly understand.
 
Wayan Saryada
Ranch Hand
Posts: 119
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you know the relation between this object then you can begin like declaring a collection of Shelf objects in the Library and a collection of Book objects in the Shelf. To store the Shelf and the Book collection you can use the List and ArrayList object. To get all the books in the Library you can iterate it Shelf collection and in turn iterate the books contained in the Shelf.
 
reggie johnson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm sorry could you give me an example. that's hard to understand a little.
 
Wayan Saryada
Ranch Hand
Posts: 119
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this little snippet can help you continue:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!