Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

@Select(""" SELECT CURRENCY_CD,COUNTRY_CD,FEE_RATE_VAL FROM FEE WHERE (COUNTRY_CD, CURRENCY_CD) IN <foreach item="currencyCd" ...
Pat's user avatar
  • 649
0 votes
0 answers
33 views

How do I run multiple queries for a delete: @Delete( """DELETE FROM punch_attachment WHERE tablename = '${tableName}' AND recordid = #{id}; DELETE FROM ...
mikeb's user avatar
  • 11.5k
0 votes
0 answers
37 views

Looking at the MyBatis docs for building entities which themselves contain lists of other entities, the following SHOULD work unless I'm misunderstanding (completely possible), but it results in ...
Patrick Proctor's user avatar
0 votes
0 answers
51 views

Using mybatis batch session template to copy data from a table having millions of records to another table in another oracle server. @Bean(value = "batchSqlSession") @Autowired public ...
Pat's user avatar
  • 649
0 votes
1 answer
624 views

I'm trying to run a Java 21 app with Spring boot 2.7.18 and mybatis 3.5.10. The project compiles fine but I get the exception below when i run it. The DEFAULT_DURATION_BETWEEN_EVICTION_RUNS ...
Mr Smith's user avatar
  • 3,538
0 votes
1 answer
660 views

I'm trying to run multiple update statements in my Spring Boot application that is calling MySQL db using MyBatis. XML configured query looks like this: <update id="updateAnglersTrackPositions&...
Nemanja Novakovic's user avatar
1 vote
0 answers
464 views

I already induct the dependency of Mybatis, in way of pom. The part of the pom be like: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId&...
90_nk's user avatar
  • 11
-1 votes
1 answer
73 views

Getting SQLSyntaxErrorException while updating List of values in MyBatis. I am using separator=";" in forecach tag, but still I am getting the error. Below is my sql query <update id=&...
NIVESH D's user avatar
0 votes
1 answer
183 views

The Task class has an instance of TaskPayload as a member object. @Data @Builder public class Task { private int id; private TaskPayload payload; // skipping other members } @Data @...
mig001's user avatar
  • 388
0 votes
0 answers
139 views

Recently I noticed that my project takes quite a long time initializing Mybatis-related beans and classes. My database has tens of shards and there is a wrapper that routes queries to the shards. ...
rooot's user avatar
  • 103
0 votes
1 answer
454 views

I have a query which returns data from bytea column from postgres. The data type used at java side is byte[] The query in mybatis mapper is like below : <select id="getPhoto" ...
Rajeev's user avatar
  • 486
2 votes
2 answers
810 views

Built update query in MyBatis xml but no luck to pass BadSqlGrammarException Here's my query <update id="updateRecordingVideoStatus"> UPDATE ...
footlessbird's user avatar
0 votes
0 answers
373 views

i have the following data (which were simplified for the purpose of this question): t1 pk | a | b | c | other1 1 | text1 | 123 | text3 | otherValues1 2 | text2 | 456 | text4 | otherValues2 ...
gabriel119435's user avatar
0 votes
0 answers
632 views

It like to be able to set custom properties in MyBatis java config that I can reference later in my XML mappers. I've created a config class that sets two beans: @Bean public DataSource ...
Raff's user avatar
  • 1,058
0 votes
1 answer
279 views

so this is pack_name.func_name working at sql developer: using spring and mybatis, i have the issue to deal with oracle's BOOLEAN type with an old jdbc driver that i cannot update. trying this idea, ...
gabriel119435's user avatar
0 votes
1 answer
3k views

I have the following update query in my mybatis xml: <update id="updateRoleValues" parameterType="map"> UPDATE sandbox.roles SET rolename = #{roleName}, ...
Mark Smith's user avatar
0 votes
0 answers
397 views

How to dynamically pick the schema name based on a request in my batis schema? We would like to do this without changing the arguments or definitions of Mapper files or with parameterType as this ...
Vishnu's user avatar
  • 509
0 votes
1 answer
92 views

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). First, I was using LambdaQueryWrapper. I wrote ...
siyuan's user avatar
  • 9
1 vote
0 answers
1k views

I am trying to write type handler for array of objects but this is giving me errors. I want to store arraylist as JSON in DB(mysql) and retrieve it as arraylist . I got the type handler examples with ...
Priyanka Mane's user avatar
0 votes
1 answer
560 views

We store one of the UUID values as binary(16) in mysql db. spec MyTable myTable = new MyTable();` //table SqlColumn<Long> id = column("id");` // id column SqlColumn<UUID> ...
aravindaM's user avatar
  • 1,088
0 votes
0 answers
586 views

I am trying to mock my batis mapper. @SpringBootTest(classes = ApiApplication.class, webEnvironment = WebEnvironment.DEFINED_PORT) @AutoConfigureMockMvc @TestPropertySource("classpath:test-...
Patan's user avatar
  • 18.1k
-1 votes
1 answer
30 views

Why is the difference between the time of the database query and the result 13 hours?
YX_Rows's user avatar
0 votes
1 answer
952 views

I'm trying to insert a UUID value, into a Postgresql table, so I've defined and configured a UUIDTypeHandler to deal with this at mybatis level. Unfortunately, the insert operations are failing with ...
Yonoss's user avatar
  • 1,718
0 votes
0 answers
3k views

I made a boardContentMap in clubMapper.xml, but I don't know why they can't find it. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined ...
heo's user avatar
  • 11
0 votes
1 answer
959 views

Getting this error while iterating over Map in mybatis Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='__frch_key_0', mode=IN, javaType=...
Karan Suthar's user avatar

1
2 3 4 5
11