Hi, In <class> element if we add the dynamic-insert="true" then it will insert the values which is having data(i.e is not null). I have doubt on the insertion. If we r not setting the data to text or varchar field then the default value will be null so dynamic-insert will not insert those fields. But if the field is integer type and not setting the value then the default value will be 0. In this scenario dynamic-true is considering 0 as value and trying to insert it . If the value is 0 the filed should not be inserted. How to achieve this scenario.
Thanks, jai
|