I have a free format sql which I passed into the myBatis mapper. I have set the resultType = "java.util.LinkedHashMap". But the result returned did not retain the column order of my sql. I have up to 65 columns in my sql select statement. It is very important to keep the original order. How can I make this work? Thanks for any help!
The resultType of LinkedHashMap did retain column order of my sql
188 views Asked by xuemei qin At
0
There are 0 answers
Related Questions in MYBATIS
- Postgres && statement Error in Mybatis Mapper?
- Mybatis-plus doesn't work! ERROR INFO:org.mybatis.spring.MyBatisSystemException
- SpringBoot is not picking Application.properties from src/main/resources
- Why can't I correctly use ibatis
- Bulk Insert with Spring-boot and my mybatis
- Is it possible to call a new query within a conditional statement in MyBatis?
- SaaS multi_tenant questions
- throw UnsupportedOperationException: null while using mybatis
- Spring Boot Can't Connect To MySQL,"Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required"
- Is it acceptable to perform an update operation within a @GetMapping method in Spring MVC?
- How to enable transaction logging in a Springboot&MyBatis project?
- springboot mvc web project works fine eventhough resultType in Mapper.xml is different from type in java code
- Spring integration mybatis failed throws: java.lang.TypeNotPresentException: Type org.apache.ibatis.session.SqlSessionFactory not present
- NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil
- Mybatis return -1 when insert and update query execute
Related Questions in LINKEDHASHMAP
- CSV to specific JSON format for API Testing using Rest Assured
- How to extract the properties of a class instance from a LinkedHashMap value
- I am sending data to google sheets api using golang, when headers get updated, sheets api is overwriting the existing headers instead of appending new
- Gson doesn't properly convert a LinkedHashMap to JSON
- LinkedHashMap objects in SearchHits instead of user type objects
- How to read list of maps
- Java LinkedHashMap converted to Object is serialized as another class?
- Create an Xml from Linkedhash Map
- How to add an empty JSON Array to JSON Object in a specific order
- How to create LinkedHashMap with accessOrder in Kotlin
- How can I access the value in ArrayList<LinkedHashMap<K,V>>?
- Unexpected output when trying to return key with largest value in LinkedHashMap java
- Mapstruct define a size in some maps
- When using Rest Assured, if I send a post request to summit data to server, how can I write "ABC":["XYZ"] this value in LinkedHashmap
- Cannot able to find output for Getters and setters in Map <LinkedHashMap>?
Related Questions in MAPPER
- ModelMapper map properties with diferent name and different type
- In Mapstruct, how to ignore null objects and fields
- With Java 17 and Spring Boot 3.2.3 @Mapper is not able create Beans
- constructor PersonaMapper cannot be applied to given types
- Snaplogic - Using both mapValue and mapKey functions in the mapper snap
- What's the point of creating mappers to convert entity<>DTOs?
- Create a custom mapping method to map a property using Riok.Mapperly
- Incorrect number of arguments supplied for call to method
- Exclude empty Arrays and values from Jackson XmlMapper
- Mapstruct adding parameter impossible?
- @Mapper annotation not being implemented at compile: missing bean from mapper class
- Validate a chain of mappers types
- Tomcat mapperContextRootRedirectEnabled attribute is not working
- How to add custom Method to ProjectTo in AutoMapper?
- how to enable ExplicitExpansion globally
Related Questions in COLUMNSORTING
- How can I separate data of one column into multiple column in excel via python or excel formula also?
- livewire datatable columns sort not restoring after page refresh
- Javascript doesn't sort list items properly
- How can I get an ordered list of columns values in a row in MySQL?
- How to rearrange columns in a data set, so that one specific column appears before another?
- Sort pandas dataframe column containing a list of floats
- Separating a column by the first 3 characters
- Create several columns from a complex column in R
- Duplicating a column and placing right next to that duplicated column
- data sorting in html webpage with script.js file but data is not being sorted correctly?
- Sorting a dataset by month with month column as an object
- Send email based on cell value
- How to seperate table Row into 2?
- Is there a way to separate values like "csv" strings on multiple columns on Redshift SQL?
- Is multi column sorting an expensive operation?
Related Questions in RESULTTYPE
- pandas.core.groupby.apply result_type parameter equivalent?
- Failable initializer with Result type?
- Eliminating use of binary_function and result_type
- Swift: Result's Failure Type cannot be protocol - "Type 'any ShadowError' cannot conform to Error"
- What is the usage of guard let self = self else { return }
- The resultType of LinkedHashMap did retain column order of my sql
- What to put in switch cases that have nothing to do?
- Scala: Iterate an Array's indices in for-comprehension but ensure result type is same Array type
- what kinds of 'resultType' as default alias in mybatis?
- structure of query does not match function result type
- Mybatis null value for resultype hashmap
- Sharepoint 2013 - Result Type Priority
- In MyBatis, How to specify result type for a SelectProvider
- What's the difference between the four File Results in ASP.NET MVC
- Using Stream Result with Struts2
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)