This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

I have written the above code...the two updates have to be done in one transaction.. I am not sure whether this is the correct code....I was concerned about the begin and commit transaction methods in the previous code which are not there in this code....It would be of great help if someone could correct me if the abovce code is wrong, and also please let me know how the begin and commit transactions are handled in the above code..