Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to implement 'or' condition in hibernet

 
Ashish bharadwaj
Greenhorn
Posts: 3
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


in this condition all active user is coming if there entity status is active , but for super admin mstentity' entity is null admin is not displaying .


i want to put 'or' condition---

criteria.createAlias("mstentity", "me");
Criterion statusEntity = Restrictions.eq("me.status", Constants.ACTIVE_STATUS ); where me(entity) eq to null. plese tell how to do it

 
Ashish bharadwaj
Greenhorn
Posts: 3
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashish bharadwaj wrote:

in this condition all active user is coming if there entity status is active , but for super admin mstentity' entity is null admin is not displaying .


i want to put 'or' condition---

criteria.createAlias("mstentity", "me");
Criterion statusEntity = Restrictions.eq("me.status", Constants.ACTIVE_STATUS ); where me(entity) eq to null. plese tell how to do it

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic