Query object on java persistence and hibernate -
what's difference between query object on: - javax.management - javax.persitence - org.hibernate should use, , why ?
first of all, based on tags of question, javax.management.query not relevant you, deals mbeans, , not db queries.
now regarding javax.persistence.query vs org.hibernate.query.
that depends of goals.
if plan stay hibernate in project, use org.hibernate.query, provides more useful methods standard interface. if plan switch provider, eclipselink, should use standard interface both, javax.persistence.query.
https://docs.jboss.org/hibernate/orm/3.2/api/org/hibernate/query.html http://docs.oracle.com/javaee/6/api/javax/persistence/query.html
Comments
Post a Comment