I'm a Spring backend learner, currently want to query some data from mysql. What I want is just a field from table.(I want categoryName in category). ...
I'm a Spring backend learner, currently want to query some data from mysql. What I want is just a field from table.(I want categoryName in category). ...
I have class Cart and Item And I would like to get this object with HashMap inside from database with Mybatis in xml. I have next query with such d ...
I am trying to create a Spring bean based on a MyBatis databaseId like so: How do I get the databaseId to be injected with MyBatis? ...
insertSelective allows us to insert only into specified columns, but isn't it the same as insert, when we keep an object's attributes null which we do ...
I saw code like below. public void insertSomething( SomeObj some ) { // insert 1 row int result = someMapper.insertSomething( some ); if( resu ...
I am getting the following exception when starting mybatis with java17. java.lang.NoSuchMethodError: 'void org.mybatis.guice.AbstractMyBatisModule.bi ...
previously when I used to used ibatis , it was running fine just by adding java.sql to my logs.properties file in tomcat and that used to output the q ...
We store one of the UUID values as binary(16) in mysql db. spec Dynamic sql query for select. But this is not working, probably due to UUID is ...
I have configured a simple member login and the search return value is null In DAO, the return value of selectOne in sqlSession is null. insert state ...
Overview I am creating a web application with SpringBoot. I am using mybatis for ORMapper. I created SQL in xml file, but I can't call it properly. ...
In the above select query in my mapper file I need to get the resultMap as a List of Strings. How to implement as default Collection cannot be given ...
I'm working on a maven project that use mybatis to DB tier. The .xml files isn't exported when I'm building the project. But the .java files are being ...
I am completely new to spring boot and I am now trying to insert some data to my database from spring boot. What is the correct way to do this? file s ...
I built a Spring Boot application and added several methods in the service layer. Then I autowired their class into the Controller. IDEA shows an erro ...
when I add Interceptor to my project.I found an error which says There is no getter for property named 'delegate' in 'class com.sun.proxy.$Proxy398' ...
I'm using Java spring and MyBatis. I have an Enum like this public enum MyEnum { A,B,C,D,E } now I want to write a query and in my query I want ...
I have two ResultSets that both of theme has completely separated SELECT and has not any relation to each other. but MyBatis always try to mix the res ...
I have a Java web application that uses MySQL. In the webapp log it shows the following message: Error querying database. Cause: java.sql.SQLExcepti ...
My project was scanned by Checkmarx, and all the Mybatis xml files show the same risk: Improper Exception Handling. The report says that every result ...
I'm using Java, Spring boot and MyBatis. Consider that I have a list of hashMap objects like this : How can I convert it to a query ? in myBatis xm ...