Is case-insensitive our standard practice?

I assume this is an exact-match search, so we're not aiming to be lenient.


On Mon, Mar 10, 2014 at 10:58 AM, wluyima <notifications@github.com> wrote:

> In api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderDAO.java:
>
> > @@ -279,6 +280,16 @@ public CareSetting getCareSettingByName(String name) {
> >  	}
> >  	
> >  	/**
> > +	 * @See OrderDAO#getOrderTypeByName
> > +	 */
> > +	@Override
> > +	public OrderType getOrderTypeByName(String orderTypeName) {
> > +		Criteria criteria = sessionFactory.getCurrentSession().createCriteria(OrderType.class);
> > +		criteria.add(Restrictions.eq("name", orderTypeName));
>
> I think this should be case insensitive
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/openmrs/openmrs-core/pull/762/files#r10441350>
> .
>