how to generate ibatis code

9 views
Skip to first unread message

Benson Chen

unread,
Apr 21, 2015, 3:44:13 AM4/21/15
to minute...@googlegroups.com
Hi all

In 0.9.1 release, I didn't find output for ibatis code, but I saw configuration and cmd.  
I try to use UI console to generate, but no this target. 

Does Anyone know how to config and generate ibatis code? 

Thanks
Benson 

Florian Adler

unread,
Apr 21, 2015, 5:32:43 AM4/21/15
to minute...@googlegroups.com
Hi Benson,

Yes you are right, the generation does not work properly.

I propose you the following patch while correcting it in the meantime for the new version.

Minuteproject has simplified the way to generate tracks (hibernate, ibatis, jpa2, ...) but the ibatis was not migrated correctly.

To enable the ibatis track please do:

1) Copy the file technology-catalog.xml into <MP_HOME>/demo/config/catalog/
It adds the node

        <technology name="iBatis" model-type="rdbms"
            template-config-file-name="mp-template-config-ibatis.xml"
            default-outputdir="ibatis" depends-on-targets=""
            template-dir="@templateRoot@/framework/bsla" status=""
            description="ibatis sqlmap + spring integration">
        </technology>
Into technology-catalog.xml

2) Replace mp-config-ibatis.xml in <MP_HOME>/demo/config

Then from <MP_HOME>/demo/config run
demo-ibatis.(sh/cmd)

It should work, the result goes to <MP_HOME>/demo/output/ibatis


Best regards,

Florian.

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "minuteproject".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse minuteprojec...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

technology-catalog.xml
mp-config-ibatis.xml
ibatis.zip
Reply all
Reply to author
Forward
0 new messages