Hibernate正在生成这样的查询:
SELECT DISTINCT
backhaul0_.BACKHAUL_ID AS BACKHAUL1_3_0_, dc1_.DC_NBR AS DC1_32_1_
FROM BACKHAUL backhaul0_
LEFT OUTER JOIN DC dc1_ ON backhaul0_.TRAILER_DROP_DC_NBR = dc1_.DC_NBR
WHERE driverday3_.DRIVER_ID = 732
但是当尝试将查询输入SQL Optimizers时,尾随下划线是有问题的,因为Optimizer倾向于认为别名是变量。有没有办法告诉Hibernate在生成查询时不要使用下划线作为别名?