openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <>
Subject Re: Metamodel generates ListAttribute for arrays instead of SingularAttribute
Date Thu, 30 Jun 2011 16:03:13 GMT
Craig's summary is what I was trying to get at.

Char and byte arrays are persistable by default. Other types require the
PersistentCollection annotation, and can be handled as collections or

Some changes to the metamodel generator and to the runtime appear to be
required. I think we're generally in agreement though.


On Thu, Jun 30, 2011 at 10:29 AM, Pinaki Poddar <> wrote:

> Mike,
> Primitive arrays especially for byte and char being treated as a singular
> attribute is something intuitively appealing. If I get the drift of your
> suggested modification, the array of entities would continued to be treated
> as par collection. Is that right?
> OpenJPA mostly treats ARRAY and COLLECTION in the same breath. At a first
> glance, it may take some effort to make special provisions based on an
> array's component type.  Or may be there is a short cut at the facade level
> model to make such provision up front. My memory of Metamodel
> implementation
> is fading...
> -----
> Pinaki
> --
> View this message in context:
> Sent from the OpenJPA Developers mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message