Hallo together,
my problem is the follwing:
i have saved my objects (all of the same class) in a database with hibernate annotations.
When I fetch the objects from the database i have the following problem: I have to check, if one of the attributes (type collection) is null or not. If I make the following check: attribute == null it is returned false, because the attribute has a reference to PersistentBag, even although I have really not created an instance of this attribute (I mean with the "new" operator).
Could somebody give me some hints?
Regards,
Martin
|