> The implementation of the write() method in
> cirrus.hibernate.collections.PersistentCollection
> states:
>
> This means the session needs to be open.
> Also, the Docs mentions that lazy collections
> need to have an open session.
Gavin:
I have also other problems with lazy collections. I get
> I have also other problems with lazy collections. I get WARNings about
> Unclosed Sessions (finalize method in SessionImpl). I use Maverick Web
> MVC Framework and it has discard() method in one interface that you can
> implement. I have put my Session closing code in it, but it doesn't
> help. I
No! If an session has been closed forcefully or by other means, hibernate
internals should not reopen the session - at least not per default! If the
session has been closed there is a reason for it - one might be to ensure
that the ui-layer does not accidently fetches data by "dotting" around in
t
I had a *really* close look into the possibility that Hibernate issues
the unclosed session WARNing when the session has in fact been closed
and I've concluded that it doesn't. I am quite certain that the problem
is that the user is not closing the sessions. (In a couple of previous
complaints abou
I agree. Furthermore there are some serious conceptual problems with
regards to ensuring transaction isolation and also potential performance
problems if a single task required multiple connections to the database.
-Original Message-
From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]
S
>Hmm - isn't this idiom inefficient ?
>Doesn't parent.getChildren().add() (or any method on the collection)
result
>in loading all the children ?
I am planning to make same small changes so that add() and remove()
*don't* force initialization of a readonly="true" collection. I should
have done
The implementation of the write() method in
cirrus.hibernate.collections.PersistentCollection
states:
protected final void write() {
initialize(true);
if ( session!=null && session.isOpen() ) session.dirty(this);
}
This means the session needs to b
Well, it works, as far as I know. All you would have to do would be to
edit the DTD to accept the 'readonly' attribute on the element. I
havn't done this, because of how difficult it would be for me to explain
to new users how the list index must map to the same column as a
property of the elemen