Hibernate与PostgreSQL DB一起使用,同时按列对desc进行排序会使空值高于非空值.
SQL99标准提供关键字"NULLS LAST"来声明空值应该低于非空值.
使用Hibernate的Criteria API可以实现"NULLS LAST"行为吗?
java null hibernate sql-order-by
hibernate ×1
java ×1
null ×1
sql-order-by ×1