Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039319Retail ModulesWeb POSpublic2018-09-19 14:592018-09-19 15:04
adrianromero 
Retail 
normaltrivialN/A
newopen 
5
 
 
No
0039319: Use Hibernate Query object typed in all cases
There are several Hibernate Query objects declared without type that requires to annotate its declaration with "@SuppressWarnings("rawtypes")" This is because the method "Query SimpleQueryBuilder::getDalQuery()" does not return Query typed.

This can be avoided with an new generic method "<T> Query<T> SimpleQueryBuilder::getDalQuery(Class<T>)" that returns Query typed.
N/A
The attached changesets include the definition of the new generic method and one example of how to use.
No tags attached.
related to defect 0039144 closed mtaal DAL queries should be replaced by SQL queries to avoid the change of Hibernate API 
diff SimpleQueryBuilder_Hibernate_Compliant.diff (693) 2018-09-19 15:00
https://issues.openbravo.com/file_download.php?file_id=12154&type=bug
diff SimpleQueryBuilder_Example.diff (1,017) 2018-09-19 15:01
https://issues.openbravo.com/file_download.php?file_id=12155&type=bug
Issue History
2018-09-19 14:59adrianromeroNew Issue
2018-09-19 14:59adrianromeroAssigned To => Retail
2018-09-19 14:59adrianromeroTriggers an Emergency Pack => No
2018-09-19 14:59adrianromeroRelationship addedrelated to 0039144
2018-09-19 15:00adrianromeroFile Added: SimpleQueryBuilder_Hibernate_Compliant.diff
2018-09-19 15:01adrianromeroFile Added: SimpleQueryBuilder_Example.diff
2018-09-19 15:04adrianromeroTypedesign defect => feature request

There are no notes attached to this issue.