Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

MyBatis Recent threads

Threads Replies First post Last post
resultsMap: association as component of compound key
By: philomath
Hello, All- This is really a design question which I am wondering if anyone has come across. It pertains to the overlap in functionality of XML resultsMap and Java TypeHandler. I have in the past used the <association> element in a…
1 May 24 2012
12:08
May 25 2012
07:09
Lazy Database Connection
By: Ryan Shelley
We started implementing our app with straight JDBC, but then added MyBatis, and when we did that, we noticed that MyBatis initializes a connection to the database on startup (we're using Spring). Our unit tests don't use the actual database (our…
5 May 24 2012
15:54
May 25 2012
01:50
Using iBatis , How to get the SQL Statement that is executed based on SQL Id ?
By: Naresh Jagatap
Hi , I have the iBatis SQL Id using which I need to get the corresponding SQL Statement. So I have written the below code . as of now this code seems to be working. but just want to know whether my approach is correct ? …
0 May 25 2012
01:38
May 25 2012
01:38
Boolean return value for mapped method
By: Benoît
Hi Folks, In one of our mapper interfaces we have following method: public boolean isExistingOrder(@Param("location") String location, @Param("orderId") String orderId); which maps to this SQL fragment: <select id="isExistingOrder"…
2 May 23 2012
10:41
May 25 2012
00:47
problem on ibatis (and framework struts) using LIKE in statement sql
By: bluenaples
hi, I have a problem when I perform an instruction sets sql that effects the calculation of how many times one determined word is found inside a column of a database. The result is memorized and, through the framework struts, must be inserts in a…
3 May 23 2012
11:36
May 24 2012
16:41
Capturing PL/SQL OUT parameter into a different object
By: Romi Halimman
Hi, We are using MyBatis to call PL/SQL and we use a single Java object that contains both the IN and OUT parameter. We would like to utilize resultType for the OUT parameter. Is this possible? Thanks.
7 May 22 2012
17:49
May 24 2012
09:33
Improving speed of query returns
By: DaveyBob
I'm working through an issue where we expect back thousands of rows. Looking down into the 3.1 MyBatis source, I see that when we query for lists, an empty ArrayList<Object> is created, and then populated with the results. ArrayLists (in…
2 May 24 2012
06:30
May 24 2012
09:02
Urgent Client Position ::: Java Flex Developer - Work Location: Palo Alto, CA
By: sai girish
*Hi,* *This is Thomas Fedrick, - Recruitment and Resources from SancroSoft USA Inc.* We have an urgent requirement as follows: Please reply to this email with the latest copy of your resume in MS-Word Format with the following details to…
1 May 23 2012
19:09
May 23 2012
19:11
Urgent Client Position ::: Senior Websphere Systems Administrator - Work Location : Eldorado Hill , CA
By: sai girish
*Hi,* *This is Thomas Fedrick, - Recruitment and Resources from SancroSoft USA Inc.* We have an urgent requirement as follows: Please reply to this email with the latest copy of your resume in MS-Word Format with the following details to…
0 May 23 2012
19:09
May 23 2012
19:09
mybatis-jpetstore-6.0.1 tutorial
By: seamoh ocean
Hello all of the members of the group , I just downlaod mybatis- jpetstore-6.0.1-bundle.zip . I searched in the internet to find a tutorial that describe this application , but I couldn't find any , is there any tutorial about…
2 May 23 2012
11:06
May 23 2012
12:25
groupBy-attribute in MyBatis?
By: Kari Pulkka
Hi, I'm migrating a project from iBatis 2.3.4 to MyBatis 3.1.1 and have a question regarding resultMap's groupBy-attribute. Does the new id- element provide the same functionality behind the scenes as the groupBy-attribute did in iBatis? Or how do…
1 May 23 2012
00:46
May 23 2012
07:32
Mybatis For Scala 1.0-beta1 released.
By: Frank Martinez
Dear Community, MyBatis Team is pleased to announce the release of MyBatis For Scala 1.0-beta1. This is a fluent Scala API for Mybatis 3.1.0 Core. And requires Scala 2.9.1. You can find more info at the project site [1] and google code [2] …
6 Mar 18 2012
20:45
May 22 2012
08:32
reading BLOB without extra class?
By: Stephen Friedrich
I want to retrieve just a blob value from a table. I could create a Java class with a single field with byte[] type and map that class. That is unnecessary complex and just feels a little stupid. My mapper method should be able to just directly…
1 May 18 2012
06:34
May 18 2012
07:46
MyBatis Generator - prevent ovewriting existing fields in model classes
By: Bogdan Tanase
Hi everyone, I'm using mybatigen to generate model classes from the database schema, but I also need to annotate certain fields with some play framework specific annotations. Example: public class Person { private String username; /** *…
1 May 18 2012
03:26
May 18 2012
03:31
Complex (complicated) mapping - simple properties not set for each instance?
By: Andy Law
MyBatis Wizards, I have a problem that I *think* is similar to the one that marzia is describing here (http://groups.google.com/group/mybatis-user/ browse_thread/thread/ce93e2eab77ad952#) but I am not certain so I'll start a new thread. My…
3 May 15 2012
08:05
May 16 2012
04:22
More property setting woes ... even with MapperFactory and PropertyPlaceholderConfigurer
By: Rick R
Wasted way too many hours on this today since I was looking everywhere except for the Spring MyBatis setup as the culprit. I went away from using a Java config for my MyBatis stuff since there were issues with the whole issues of properties getting…
4 May 14 2012
21:52
May 15 2012
11:43
Using many-to-many mapping with Map.
By: Shoonya
Hi All, Let's say a POJO Is public class Class1 { private String abc; private String def; private List<Class2> list; } then, we can have below annotations to fetch Class1 along with list field. @Result(property="list",…
0 May 15 2012
09:28
May 15 2012
09:28
howto: many-to-many mapping
By: marzia
Please can some kind 'mapper' help me with following scenario: let's say that I have many-to-many relation between two entities in my db but not in my domain model... Is it possible to make a one 'fat join' and map those in something like…
2 May 14 2012
15:06
May 15 2012
05:34
MyBatis mapper interface extends other interfaces ,but it can't work
By: 470863193
Hi team!! I have a java project use MyBatis and springMVC,may mappers have the same methods,I want put them in a generic interfaces,so that other mappers will extend that interface this is my code: Base.java: public abstract Class Base{ .... }…
2 May 14 2012
09:28
May 15 2012
02:49
migrations: migrate down ALL
By: Stephen Friedrich
Is there a way to revert _all_ migrations without causing an error message? Currently I do migrate down 999 which works ok, but results in an error message org.apache.ibatis.migration.MigrationException: Error undoing last migration. plus a…
0 May 15 2012
02:31
May 15 2012
02:31