hi
i have a scenario like this, lets say i hv table client and other table clientTypes
clientTypes are already placed it the table,
i single GUI (jsp page) take the information of client like name, address, etc with clientTypeName value.
i use hibernateTemplate in spring to persist this data. i use template.save(clientObject);
it throughs exception like transient object must be save before fulshing client.
i want th clientType id against give typeName that is a forigen key of clientType table in client table.
cient table has relation of many-to-one with clientType.
if anyone encounter this problem then plz reply me as soon as possible
thanks in advance.
|