[hibernate-dev] Are arrays of non-basic elements supported?
mihalcea.vlad at gmail.com
Thu Jul 27 03:04:18 EDT 2017
I fixed it with the following commit:
Let me know if it's more clear now.
On Wed, Jul 26, 2017 at 7:32 PM, Gail Badner <gbadner at redhat.com> wrote:
> OK, I'll make sure Hibernate also treats an empty array element as
> equivalent to null as well.
> Vlad, thanks for correcting the documentation.
> On Wed, Jul 26, 2017 at 7:38 AM, Vlad Mihalcea <mihalcea.vlad at gmail.com>
>> The docs says:
>> When it comes to arrays, there is quite a difference between Java arrays
>> and relational database array types (e.g. VARRAY, ARRAY). First, not all
>> database systems implement the SQL-99 ARRAY type, and, for this reason,
>> Hibernate doesn’t support native database array types. Second, Java arrays
>> are relevant for basic types only since storing multiple embeddables or
>> entities should always be done using the Java Collection API.
>> I guess the "Second, Java arrays ..." part is indeed a little bit
>> I created the following issue:
>> Is it a problem if I link the docs to my blog post about how to support
>> arrays of basic types?
>> On Wed, Jul 26, 2017 at 4:04 PM, Steve Ebersole <steve at hibernate.org>
>>> That doc section is wrong. Vlad - can you fix that
>>> We do in fact support arrays of all types including embeddables and
>>> entities. However, we have always recommended to not use arrays for
>>> entities as arrays cannot be lazy loaded (not even using bytecode
>>> On Mon, Jul 24, 2017 at 6:29 PM Gail Badner <gbadner at redhat.com> wrote:
>>> > Documentation makes it sound like only arrays of basic types are
>>> > 
>>> > I see a test using an array of entities, but I don't see one for an
>>> > of embeddables. 
>>> > Regards,
>>> > Gail
>>> > 
>>> > http://docs.jboss.org/hibernate/orm/5.2/userguide/html_singl
>>> > 
>>> > https://github.com/hibernate/hibernate-orm/blob/master/hiber
>>> > _______________________________________________
>>> > hibernate-dev mailing list
>>> > hibernate-dev at lists.jboss.org
>>> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
More information about the hibernate-dev