Immutable objects and currentUnitOfWork

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Immutable objects and currentUnitOfWork

Annick-2
Hi,

I have a strange behaviour. I am trying to update an object with a simple attribute value, but I have several issues :
- the session has already a unit of work and I can't find out why, even if I do aSession commitUnitOfWork or rollbackUnitOfWork
- my object is immutable, and I don't know why

I have tried to do myobject isImmutable: false, but it does not help.

Annick

--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/d2be0bc3-86c2-454f-81a9-ddc79e7be202o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Immutable objects and currentUnitOfWork

jtuchel
HI Annick,

I must admit I don't really understand your questions.

Re: immutable objects: I think this is a VidsualWorks specific thing, isn't it? In VAST,there is no implementor of isImmutable:. What is the effect that indicates the object is immutable? DO you get an exception when sending a setter message? Which one? What is the superclass of your persisted objects?

What's the problem with a session already having a unit of work? What exactly do you try to achieve?

I am not sure I will be able to help with any of your issues, but I'd like to try...

Joachim




Am Mittwoch, 17. Juni 2020 11:48:12 UTC+2 schrieb Annick:
Hi,

I have a strange behaviour. I am trying to update an object with a simple attribute value, but I have several issues :
- the session has already a unit of work and I can't find out why, even if I do aSession commitUnitOfWork or rollbackUnitOfWork
- my object is immutable, and I don't know why

I have tried to do myobject isImmutable: false, but it does not help.

Annick

--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/9df72f53-e747-42b2-b1d1-3613622e28eco%40googlegroups.com.