为什么hibernate本机查询
javax.persistence.persistenceexception:org.hibernate.loader.custom.ununiquediscoveredsqlaliasexception:在自动发现本机sql查询期间遇到重复的sql别名[merchant\u txn\u status\u id]
查询
Query query = entityManager.createNativeQuery("select *"
+ " from merchant_transactions mt"
+ " inner join appl_merchant_txn_statuses mts on mt.merchant_txn_status_id = mts.merchant_txn_status_id"
+ " where"
+ " mt.customer_id = " + _merchantTransaction.getCustomerId()
);
有人能帮我吗?
谢谢
暂无答案!
目前还没有任何答案,快来回答吧!