The moose likes Object Relational Mapping and the fly likes Viewing # of rows updated by Hibernate DML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Viewing # of rows updated by Hibernate DML " Watch "Viewing # of rows updated by Hibernate DML " New topic
Author

Viewing # of rows updated by Hibernate DML

Chase Bonham
Ranch Hand

Joined: Jul 15, 2006
Posts: 50
Hibernate 2.0

<property name="show_sql">true</property>

I can use that to see the DML issued. But is there a way to check
how many rows were updated by the DML?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

When you execute the DML, it should return the number of rows affected?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Viewing # of rows updated by Hibernate DML
 
Threads others viewed
Hibernate - How to retrieve data from the database
Problem with Sybase stored proc in hibernate
Hibernate mapping issue
What hibernate.hbm2ddl.auto value to use?
Hibernate does not return any result
developer file tools