Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes How to embed class within List in POJO? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to embed class within List in POJO?" Watch "How to embed class within List in POJO?" New topic
Author

How to embed class within List in POJO?

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

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

Joined: Mar 05, 2010
Posts: 121
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to embed class within List in POJO?
 
Similar Threads
csv file
classes with private constructors can not be subclassed?
confusion of protected
Question about instance variables
Is it possible to invoke a method before even the object gets created?