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 best solutions below
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
- C# check if there is an overload method with the specific type
- org.codehaus.jackson.JsonParseException: Unexpected character ('�' (code 65533 / 0xfffd))
- a object to object mapper compatible on Android
- the mappers execute sequentially not parallelly
- output of one mapreduce program as input to another mapreduce program
- java.lang.NumberFormatException: For input string: "100" while executing MapReduce
- Generic Data Record Cannot be cast to Avro
- Annotations for scala class to use mapper
- Jackson Mapping List of String or simple String
- Pandas row-wise mapper
- How to pass string as value in mapper?
- Tibco mapper activity provides no output
- How to Give a column name to the Output in MapReduce?
- What should be the best practice in Domain and DTO mapping
- How to "unset" injectableValues from objectMapper?
Related Questions in COLUMNSORTING
- How to sort my html table
- How to apply sorting by clicking on column header in PHP?
- Sorting string column containing numbers in MSSQL?
- Sorting datatable columns
- Rearrange elements even and odd columns into one vector
- Jquery Handsontable Sorting on specific columns
- Vaadin 14 Grid Component Column containing checkbox does not sort
- Make output of two rows into columns R
- Sorting 2D array of integers by column
- Sorting a 2D array of integers by values in columns
- Finding indexes of 2d array elements in a sorted 2d array by columns
- MYSQL- sorting varchar column includes number and char
- jQuery DataTables: how to sort by specific column?
- Grouping categories into smaller categories in a column
- How to calculate the sum of specific columns in R and make the results in a another column
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
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)
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?