Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
1. Loaded instances last stored with a null or empty collection/map
are restored with an empty collection/map, period. You can ignore
all the talk about null indicators.
2. Instances you construct yourself will maintain their null vs.
empty field values at least until persist. Beyond that you shouldn't
rely on null collections and maps remaining null -- they might become
empty.
3. Pinaki's tip shows how to tell OpenJPA to throw an exception if
you attempt to add an entity of the wrong type to a persistent
collection/map field.
_______________________________________________________________________
- Collection (or Map) relationships and null Dain Sundstrom
- RE: Collection (or Map) relationships and null Patrick Linskey
- Re: Collection (or Map) relationships and null Dain Sundstrom
- RE: Collection (or Map) relationships and nul... Patrick Linskey
- Re: Collection (or Map) relationships and... Abe White
- Re: Collection (or Map) relationship... Craig L Russell
- Re: Collection (or Map) relation... Dain Sundstrom
- Re: Collection (or Map) rela... Craig L Russell
- RE: Collection (or Map) relationships and nul... Pinaki Poddar