I have an entity:
@Entity @Table(name = \"[Usermaster]\") @Where(clause = \"isDeleted = 0\") public class User { //... }
in some flow I nee
Old question, but the answer might be here:
simple solution is to use native SQL:
lst = sessionFactory.getCurrentSession(). createSQLQuery("select {entb.*} from EntityB entb where is_deleted=1") .addEntity("entb", EntityB.class) .list();