On this page:


Summary: This document provides basic information about the extension providing MyBatis (for Java/.NET) support.

What's new ?

Changes in 1.0.0-alpha2:

Changes in 1.0.0-alpha1:

Description 

This extension provides support for MyBatis for Java / .NET using Mapper XML file containing SQL queries.

In what situation should you install this extension?

This extension should be installed when analyzing a Java/.NET project that uses a MyBatis framework, and wanting to view a transaction consisting of MyBatis objects with their corresponding links. This version supports only MyBatis for Java/.NET using Mapper XML file containing SQL queries. Links to corresponding database tables can also be resolved, provided that the MySQL database has been extracted and DDL has been created.

Supported MyBatis versions

The following table displays the supported versions matrix:

Language SupportedVersionSupport
Java3.0.2Mapper XML file
.NET4.5.2Mapper XML file

CAST AIP Compatibility 

This extension is compatible with:

CAST AIP release
Supported
8.3.x(tick)
8.2.x(tick)
8.1.x
(tick)
8.0.x(tick)
7.3.4 and all higher 7.3.x releases

(tick)

Supported DBMS servers 

This extension is compatible with the following DBMS servers:

CAST AIP releaseCSSOracleMicrosoft
All supported releases(tick)(error)(error)

Prerequisites

(tick)An installation of any compatible release of CAST AIP (see table above)
(tick)MySQL database should already be extracted and DDL created.

Dependencies with other extensions 

When using the CAST Extension Downloader to download the MyBatis extension and the Manage Extensions interface in CAST Server Manager to install the extension:

  • the CAST AIP Internal extension will be automatically downloaded and installed for you. You do not need to do anything.
  • the SQL Analyzer extension - is not configured as a "dependent" extension and will therefore not be automatically downloaded and installed for you. However:
    • When using CAST AIP ≥ 8.3.x, the SQL Analyzer extension is installed by default, therefore you do not need to do anything.
    • When using CAST AIP ≤ 8.2.x, the SQL Analyzer extension is not installed by default, therefore you will need to download and install it manually if you want to handle the SQL source code in your MyBatis application.

Download and installation instructions

Please see:

The latest release status of this extension can be seen when downloading it from the CAST Extend server.

Packaging, delivering and analyzing your source code 

Once the extension is installed, no further configuration changes are required before you can package your source code and run an analysis. The process of packaging, delivering and analyzing your source code is as follows:

Packaging and delivery

Note that the MyBatis extension does not contain any CAST Delivery Manager Tool discoverers or extractors, therefore, no "MyBatis" projects will be detected by the DMT. You therefore need to manually create Analysis Units in the CAST Management Studio - this is explained below.

 You should ensure that your code is organised as follows:

Java

  • one folder containing all the Java related code and the XML related files
  • one folder containing the MySQL DDL extraction

.NET

  • one folder containing all the .NET related code and the XML related files
  • one folder containing the MySQL DDL extraction

Using the CAST Delivery Manager Tool:

Click to enlarge


Click to enlarge

Note that:

Analyzing

Using the CAST Management Studio:

Example for JEE

 

Example for JEE

What results can you expect?

Once the analysis/snapshot generation has completed, you can view the results in the normal manner. Below are the transactions obtained after analysis as shown in CAST Enlighten:

For Java

For .NET


Objects 

The following specific objects are displayed in CAST Enlighten:

Links

Various links are created but the following are the links specific to the Mybatis extension:

For Java

For .NET

Limitations

The following cases are not supported: