Paul Sturrock wrote:I'm a little confused, is it a property or an association you have here?
If it is a property you are persisting, albiet a lazy one. So if it is null and you call saveOrUpdate it will behave exactly like any other null property on a mapped object. Either load the lazy property or, if this is not desirable, use the dynamic-update and dynamic-insert elements in your class mapping.
please tell me how can I use dynamic-update and dynamic-insert for annotated classes , I know in xml but not in annotation please tell me