You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Thomas Fox <Th...@seitenbau.net> on 2012/08/20 06:16:40 UTC
LargeSelect serialization issue
In trunk we have an issue with LargeSelect. This class needs to be
serializable, in order to be stored in a session.
This means that all of its fields need to be serializable.
It currently holds an instance of BasePeerImpl, which itself holds an
instance of TableMap, which was not serializable.
I made it serializable, this leads to all the Map instances bein
gserializable, and now have a problem at DatabaseMap which holds a database
instance.
Database cannot be made serializable (it holds Datasources in instance
variables)
So we have a choice to revert to Largeselect holding RecordMapper instances
again, or we can remove the link of DatabaseMap to Database (which can be
done, is not used in many places, but it is an incompatible change)
What do you think ? I have a slight perference for removing DatabaseMap's
database field. I can do the change once decided.
Thomas
P.S Thanks to FindBugs for noting the issue.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: LargeSelect serialization issue
Posted by Thomas Vandahl <tv...@apache.org>.
On 22.08.12 05:58, Thomas Fox wrote:
> Since no-one commented I removed DatabaseMap's database field.
You need to be more patient than this. :-)
However I agree with your decision.
Bye, Thomas.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: LargeSelect serialization issue
Posted by Thomas Fox <Th...@seitenbau.net>.
Thomas Fox wrote:
> ...
> So we have a choice to revert to Largeselect holding RecordMapper
instances
> again, or we can remove the link of DatabaseMap to Database (which can be
> done, is not used in many places, but it is an incompatible change)
>
> What do you think ? I have a slight perference for removing DatabaseMap's
> database field. I can do the change once decided.
Since no-one commented I removed DatabaseMap's database field.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org