ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James, Steven" <steven.ja...@logicacmg.com>
Subject RE: how to get ID from relation table?
Date Sat, 13 May 2006 12:36:45 GMT
Depend son the database but if it is an auto key just use the select key tag. Have a look at
the documentation on page 15.



From: CIJOML [mailto:cijoml@volny.cz]
Sent: Sat 13/05/2006 13:32
To: user-java@ibatis.apache.org
Subject: how to get ID from relation table?


I am new to iBatis and I need fill in value into table with foreign key. How
can I get ID from relation table filled before this table? Does ibatis return
this value for me?

For example:
Table person with personId, firstName, surName
Table Address with addressId, personId (foreign key), streetName, etc

Now I am able to insert/udpdate/delete rows in person table, but need also
fill in relation table.

Thanks a lot


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

View raw message