terasolunaorg / terasoluna-gfw

Common libraries for TERASOLUNA Server Framework for Java (5.x)
108 stars 56 forks source link

Support MyBatis3 #2

Closed makits closed 10 years ago

makits commented 11 years ago

As one of the data access library, MyBatis3 should also be supported.

kazuki43zoo commented 10 years ago

I made a prototype of sub project for Mybatis3. see (a88f58fc4a6dc5d91fdab42589a48be8399d92aa).

How do think ? If this prototype is ok, add javadoc and will send pull-request.

[Overview]

making commented 10 years ago

Supporting Joda-Time type handlers should be separated from adding dependency on MyBatis3.

By the way, I think terasoluna-gfw should not provide the specific implementations because it causes heavy dependency on the technology and makes terasoluna-gfw vulnerable to change.

I think it's enough to show sample implementations in guideline.

btshimizukza commented 10 years ago

I agree. Remove type handlers, and send pull-request.

Tip) When set null value, does not work by default settings of Mybatis3 In Oracle11g Express edition. Need change a settings as following.

<configuration>
    <settings>
        <setting name="jdbcTypeForNull" value="NULL" />
    </settings>
</configuration>

H2 and PostgreSQL9.2 was OK by default settings of Mybatis3.

btshimizukza commented 10 years ago

See related issue(https://code.google.com/p/mybatis/issues/detail?id=224)

btshimizukza commented 10 years ago

There was a fix leaks...

kazuki43zoo commented 10 years ago

mybatis-3.2.6-SNAPSHOT was pre-released. If mybatis-3.2.6 released officially before terasoluna-gfw-mybatis3-1.1.0.RELEASE released, i want consider take mybatis-3.2.6.

kazuki43zoo commented 10 years ago

mybatis-2.3.6 has been released today. Maybe took in mybatis-3.2.6 is good, because some behavior has been improve.

see https://github.com/mybatis/mybatis-3/releases/tag/mybatis-3.2.6.

btshimizukza commented 10 years ago

mybatis-3.2.7 has been released 2 days ago.

see https://github.com/mybatis/mybatis-3/releases/tag/mybatis-3.2.7.

btshimizukza commented 10 years ago

apply 3.2.7.

btshimizukza commented 10 years ago

We might be need upgrade to 3.3.0 to support java8 (see #142). See the release note of 3.3.0-SNAPSHOT

But ... 3.3.0 has not been released.

kazuki43zoo commented 10 years ago

mybatis-3.2.8 has been released. detail see here.

I will apply 3.2.8.