本文介绍了休眠查询以获取特定列的所有值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我有两列名称分别为UserId,SenderId和UserId,这些ID是主键.我正在尝试根据UserId
为每个用户分配多个或单个SenderId.现在我的要求是,如果我为一个特定用户分配了多个SenderId,那么它将不允许该特定用户的重复SenderId并包括所有用户.我将SenderId定义为唯一.任何人都可以给我休眠查询即可做到这一点.
谢谢您.
Hi frnds,
I have two columns names as UserId,SenderId among those UserId is primary key.I am trying to assign the multiple or single SenderId''s for each user based on the UserId
now my requirement is if i assigned multiple SenderId''s for a particular user then it is not going to allow the duplicate SenderId for that particular user and including all the users also.I defined the SenderId as unique.Can any one give me the hibernate query to do this one.
Thank In Advance.
推荐答案
这篇关于休眠查询以获取特定列的所有值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!