Hi All
I need to store a reference to an object in database table?
how do we do that? how do we retrieve that reference too?
please little sample code.
thanks.
with Java there is no possibility for pointer usage like in C and C++
try this :
use a 'java.util.HashMap' object and associate an 'id' to an object. then store the id in the database.
you can then easily retrieve the object with its 'id'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.