ibatis Questions
3
The service gets an unknown object containing a list of three values [column, operator, value] For example,
EMAIL - like - "TEST"
Based on the resulting list to build the WHERE clause I have but...
9
I am getting list of Address objects from the DB call.
ArrayList<Address> addresses = new ArrayList<>();
Each Address has an int addressId property.
I am writing an update query wh...
3
What is the difference between iBatis and myBatis? Where can I find a perfect example of those?
7
In my project i have
<bean id="ABCSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="ABCDataSource" />
<property name="mapperLocat...
3
Solved
Hi I'm new to myBatis.
I'm using MyBatis and Spring with mybatis-spring.
How can I pass two different types of objects as parameters, and how can I use their properties in query?
<update id="...
4
Using annotations in mybatis, can we have return type as normal map ?
Basically, I want something like this
@Select("select a, b from tableA")
public Map<String, String> getItems();
Where...
3
Solved
I would like to put sql fragments used by several of my SQL Map XML files in a separate file. At the moment, the <sql> elements with these fragments are in one of the mappers together with ot...
13
i have many problem with spring e mybatis. This is my spring configuration:
i have the same configuration and ComuneMapper.java and ComuneMapper.xml stay in the same folders. but i have however thi...
4
Solved
I like the XML notation for specifying global parameters such as connection strings. I also like Mapper annotations. When I try to combine the two, I get this exception.
Is there a way to combine ...
10
Solved
I am using ibatis and C#. i get a result from a select query that has CreatedDate as one of the field. The Datatype of CreatedDate in Mysql is Date. I assign the result set of the select query to a...
7
When I debug the JdbcTemplate sourcecode use IDEA,the IDE tips me:'Source code does not match the bytecode'
Screenshot:
and i use mvn to manage my project;my maven pom config is:
<dependency>...
3
Solved
I am confused about using $ vs #. I didn't found any guides for this. I used them as
name = #{name}, name like '%${word}%', order by name ${orderAs},where name = #{word}
Sometimes , these are work ...
3
Solved
In recent times, a particular page in my web app throws the
Exception Details: MySql.Data.MySqlClient.MySqlException: Timeout
expired. The timeout period elapsed prior to completion of the
op...
Buff asked 13/8, 2010 at 10:8
9
Solved
We'd like to use only annotations with MyBatis; we're really trying to avoid xml. We're trying to use an "IN" clause:
@Select("SELECT * FROM blog WHERE id IN (#{ids})")
List<Blog> selectBl...
Softball asked 7/8, 2010 at 1:9
8
Solved
I am newbie to mybatis. I am trying to get the id of last inserted record. My database is mysql and my mapper xml is
<insert id="insertSelective" parameterType="com.mycom.myproject.db.mybatis...
2
Solved
Has MyBatis any feature to allow create the SQL schema from de Class Model like Hibernate does?
I'm looking for that in Google and I only found information about MyBatis Generator (http://mybatis....
0
3
Solved
I have steps in the batch job that does different things.
But before I begin all these steps, I need to clear a table. Is there any simple way to write a tasklet that will delete the table directl...
Trentontrepan asked 20/10, 2011 at 10:5
4
Solved
Is there any way to select/update/delete dynamically using Ibatis/MyBatis?
When I say "dynamically" it means I don't want to create any POJO/DataMapper at all.
Any URL example would be welcomed....
2
Solved
I have need to populate 2 different ids in the same table on insert and I am trying to use selectKey to pull values from Oracle sequence to populate the ids.
With one id and selectKey I have no pr...
7
Solved
I'm setting up mybatis using annotations, and getting this helpful exception
org.apache.ibatis.binding.BindingException:
Type interface org.foo.Bar is not
known to the MapperRegistry
Googlin...
3
Solved
I am using iBatis-2.3.4.726 in my production application. I want to migrate my production application to use MyBatis.
What points i need to consider while migration process?
Is there any configur...
6
Solved
I'm using iBATIS to create select statements. Now I would like to implement the following SQL statement with iBATIS:
SELECT * FROM table WHERE col1 IN ('value1', 'value2');
With the following ap...
3
Solved
I feel like this is a simple problem, but none of the things i tried work for me. I have an enum, the reason i have string constructor is because Java doesn't allow enum to be numerical..I tried AA...
Dinar asked 21/4, 2017 at 20:8
4
Solved
How to do dynamic SQL in myBatis 3.1.1 based on an enum constant parameter?
Conventioneer asked 17/10, 2012 at 11:58
1 Next >
© 2022 - 2024 — McMap. All rights reserved.