• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

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

 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic