This content has been marked as final.
Show 3 replies
-
1. Re: Persist a List
ericjava.eric.chiralsoftware.net Jun 2, 2008 7:20 PM (in response to yacin00)What is wrong is, you can't persist a List.
If the java.util.List class had an @Entity notation on it, you could. But it doesn't.
You need to do this some other way. In particular, you need to create an Entity to contain the list, like:
@Entity ContactNotifications { @OrderBy("contactOrderField") public List<Contact> getContactList() { ... } }
Or, go through the list and persist each ContactNotification one at a time.
Does it make sense?
-
2. Re: Persist a List
yacin00 Jul 9, 2008 4:31 PM (in response to yacin00)hi, sorry,it's somewhat late, But, i found an example which affirm that we can persist a list, i don't know if it works. I'll try...
My Link
??? -