hibernate-3.2: 
I want to write the following query:
Code:
select * from efi_license_type where lic_expiry_date is null
That will return all rows that has lic_expiry_date is null.
Code:
      public static List<EfiLicenseType> getActiveEfiLicenseTypeList(){
            List<EfiLicenseType> efiLicenseTypeList = null;
            try {
                  Query q = HibernateUtil.currentSession().createQuery(
                              "from EfiLicenseType " +
                              "where licExpiryDate is :licExpiryDate " +
                              "order by licTypeId asc ");
                  //GregorianCalendar licExpiryDate = new GregorianCalendar();
                    GregorianCalendar licExpiryDate = null;
                  q.setCalendar("licExpiryDate", licExpiryDate);
                  //q.setCalendar("licExpiryDate", null);
                  efiLicenseTypeList = q.list();
            } catch (HibernateException ex) {
                  throw new InfrastructureException(ex);
            }
            return efiLicenseTypeList;
      }
Thanks
Naz
Code:
Code: