Hi guys,
How do I break an object into multiple tables with iBatis. For example,
suppose the following object:
Message: dtMsg, Msg, annex, annex.
How would you write the fields: dtMsg and message, in message table and the
fields: annex, in other table.
How can I map this situation. The
All depends on how you are going to be getting your primary key and how you
would like it hydrated into your child tables.
There are 2 ways to handle this,
the first is to handle the inserts through a parent transaction and then do
the subsequent insert calls through seperate mapper.Insert(...)
Thanks Michael.
Indeed the first option and much more interesting.
Thanks for the tip.
Michael McCurrey-3 wrote:
All depends on how you are going to be getting your primary key and how
you
would like it hydrated into your child tables.
There are 2 ways to handle this,
the first is to
3 matches
Mail list logo