|
Re: most optimal wy to persisted list? [message #385747 is a reply to message #385744] |
Mon, 02 March 2009 14:55 |
|
JPA 2.0 and EclipseLink 2.0 will support ordered lists using an index
column in the database. BasicCollections will also be standardized as
ElementCollection mappings in JPA 2.0. The EclipseLink 2.0 builds already
have this functionality, and some of the functionality was in the 1.1
release.
The drawback with serializing is that you cannot query on the list values.
However, if you don't need to query the values, then there is probably
nothing wrong with serializing the list.
You can also map the list as a OneToMany in JPA 1.0, and define a class
for the value that also contains an index field to order the list by.
---
James
http://www.nabble.com/EclipseLink---Users-f26658.html
James : Wiki : Book : Blog : Twitter
|
|
|
Powered by
FUDForum. Page generated in 0.02494 seconds