Reputation: 1089
I am using JPA to do ORM. However, one thing I'd particularly like to do is to also be able to check the size of the tables that are being managed. Are there any streamlined ways of doing it or do I need to keep a set of separate JDBC scripts to do the more conventional DB management stuff?
Thanks.
Upvotes: 1
Views: 186
Reputation: 15577
What size? you mean number of rows ? which you can obviously get with "SELECT COUNT(p) FROM Person p". JPA doesn't do physical size of a datastore, so you'd have to have some native queries to get that (datastore specific also).
Upvotes: 1