openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: Collection (or Map) relationships and null
Date Mon, 11 Dec 2006 23:00:47 GMT
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. 
_______________________________________________________________________
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.

Mime
View raw message