Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to embed class within List in POJO?

 
Mimi Tam
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I really need an example on this as I have no idea how this is done and finally gave up after fiddling with it long enough.


A list of Class TestSubClass is part of Class ABC.

I need Class ABC to be mapped and populated with a list of TestSubClass (i.e. testSubClassList) objects inside an instance of Object ABC. Various exceptions when persisting to MySQL.

How shall I do this? Please help.

Any help will be greatly appreciated.
 
Mimi Tam
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It finally worked. I did not make any changes.

By "it worked", I meant that it passed the persist() action and moving on.....to another question.

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic