Discussion:
[castor-dev] Database load operation with a given instance
Lukas Lang
2009-07-28 16:11:52 UTC
Permalink
Hey Devs,

I tried to use the

Database.load(X.class, identity, new X()) method

but failed. The database consistently returned a previously loaded and
cached entity instance.

When having a look at the database implementation, the specified object
is never used. Do you think it might be enough to set the object into
the ProposedEntity instance?

Any ideads?

Thanks in advance,
Lukas

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Ralf Joachim
2009-07-28 17:07:22 UTC
Permalink
Hi Lukas,

I don't think this will be enough. You may need to add another case to
if statement at line 549 of AbstractTransactionContext too. After that
it may be possible that it works to set the entity into ProposedEntity.

Regards
Ralf
Post by Lukas Lang
Hey Devs,
I tried to use the
Database.load(X.class, identity, new X()) method
but failed. The database consistently returned a previously loaded and
cached entity instance.
When having a look at the database implementation, the specified object
is never used. Do you think it might be enough to set the object into
the ProposedEntity instance?
Any ideads?
Thanks in advance,
Lukas
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: ***@syscon.eu

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Continue reading on narkive:
Loading...