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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -