• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to implement 'or' condition in hibernet

 
Greenhorn
Posts: 3
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic