Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040428Retail ModulesStoreServerpublic2019-03-21 11:202022-05-20 09:06
mtaal 
mtaal 
normalmajorhave not tried
closedopen 
5
 
 
No
0040428: When using nativequery make sure to set the type of the parameter to handle null
See these topics:

[1]
https://stackoverflow.com/questions/21731343/jpa-native-query-set-null-parameter [^]

[2]
        sql = "select ad_org_id from m_product where m_product_id=:productId";
        final NativeQuery sqlQry = OBDal.getInstance().getSession().createNativeQuery(sql);
        sqlQry.setParameter("productId", getColumnValue("m_product_id", dataMetaData), StringType.INSTANCE);
        String productOrgId = (String) sqlQry.uniqueResult();
See description
Change should be similar to this change:
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.storeserver.synchronization-q1/rev/686203970998 [^]
No tags attached.
Issue History
2019-03-21 11:20mtaalNew Issue
2019-03-21 11:20mtaalAssigned To => mtaal
2019-03-21 11:20mtaalTriggers an Emergency Pack => No
2022-05-20 09:06mtaalStatusnew => closed

There are no notes attached to this issue.