db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "Java5FeaturesAndJdo" by sun2bin
Date Fri, 23 Dec 2005 03:15:07 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by sun2bin:
http://wiki.apache.org/jdo/Java5FeaturesAndJdo

------------------------------------------------------------------------------
   * generics with wildcards as persistent field types...
  Generic wildcards allow the user to bound the types of persistent collection elements, or
map keys and values. For example, if we know that a {{{Set}}} can only contain {{{Number}}}
elements, we might declare it as a {{{Set<? extends Number> skills;}}}. Mapping this
persistent field to the datastore is similar to the issue of mapping a field of a superclass
to the datastore, e.g. {{{Number skill;}}}. And it is similar to mapping {{{Set<Number>}}}.
We believe that as far as JDO is concerned, the implementation can consider {{{Set<? extends
Number>}}} exactly as {{{Set<Number>}}}.
   * fields of type identifier type ...
- The only implementation class for type identifiers is Class, which cannot be persistent.
I (clr) propose to wait until a use-case is developed. 
+ The only implementation class for type identifiers is Class, which cannot be persistent.
I (clr) propose to wait until a use-case is developed.
   * generics arrays ...
  This seems to apply only to methods of generic classes and not to persistent behavior. I
(clr) propose to wait until a use-case is developed.
   * as persistence-capable classes ...
@@ -47, +47 @@

   * enum types as persistence-capable classes ...
   * the new collection types `EnumSets` and `EnumMaps` ...
  
- ---- /!\ '''Edit conflict - other version:''' ----
- 
  = JDO Specific Annotations =
  For managed relations, we may add javax.jdo.annotation.Inverse for use in a PC class:
  {{{

Mime
View raw message