Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POStrivialN/A2018-09-19 14:592018-09-19 15:04
ReporteradrianromeroView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0039319: Use Hibernate Query object typed in all cases

DescriptionThere 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.
Steps To ReproduceN/A
Proposed SolutionThe attached changesets include the definition of the new generic method and one example of how to use.
TagsNo tags attached.
Attached Filesdiff file icon SimpleQueryBuilder_Hibernate_Compliant.diff [^] (693 bytes) 2018-09-19 15:00 [Show Content]
diff file icon SimpleQueryBuilder_Example.diff [^] (1,017 bytes) 2018-09-19 15:01 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0039144 closedmtaal DAL queries should be replaced by SQL queries to avoid the change of Hibernate API 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-09-19 14:59 adrianromero New Issue
2018-09-19 14:59 adrianromero Assigned To => Retail
2018-09-19 14:59 adrianromero Triggers an Emergency Pack => No
2018-09-19 14:59 adrianromero Relationship added related to 0039144
2018-09-19 15:00 adrianromero File Added: SimpleQueryBuilder_Hibernate_Compliant.diff
2018-09-19 15:01 adrianromero File Added: SimpleQueryBuilder_Example.diff
2018-09-19 15:04 adrianromero Type design defect => feature request

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker