如何使用Hibernate Criteria在选择中实现“ case when ... else”

时间:2019-04-16 00:06:24

标签: hibernate hibernate-criteria

如何使用Hibernate Criteria在select中写'case when ... else ... end'语句? 在我的情况下,我会遇到以下情况:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 154, in run
    (client_sock, client_addr) = self.server_sock.accept()
File "/usr/lib/python2.7/socket.py", line 206, in accept
sock, addr = self._sock.accept()
File "/usr/lib/python2.7/socket.py", line 174, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor

这甚至被支持吗?

0 个答案:

没有答案