Optimized ibator use (transfer)

2010-11-05  来源:本站原创  分类:Java  人气:110 

1. Download the optimized version of the ibator, get rid of a lot of unnecessary content, in the face there are some nasty comments no use ibatorgenerator, etc. are optimized.

2. Write ibatorConfig.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Apache iBATIS Ibator Configuration 1.0//EN" "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
<ibatorConfiguration >
  <classPathEntry location="D:\springworkspace\spider\spider\spider-web\target\spider-web\WEB-INF\lib\mysql-connector-java-5.1.9.jar" />
  <ibatorContext >
    <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/gigi" userId="root" password="123456" />
    <javaModelGenerator targetPackage="com.isbn.bean" targetProject="kk" />
    <sqlMapGenerator targetPackage="com.isbn.app.map" targetProject="kk" />
    <daoGenerator targetPackage="com.test.dao" targetProject="kk" type="GENERIC-CI" />
    <table schema="gigi" tableName="p_ticker"  domainObjectName="Ticker" >
    </table>
  </ibatorContext>
</ibatorConfiguration>

3. New directory kk

4. Run the command: java-jar ibator.jar-configfile ibatorConfig.xml-overwrite>> log.log

Output to the log.

Description: tag table in the schema can not avoid the program name appears in the xml. Table situation
oracle time:

<classPathEntry location="D:\project\WorkSpace\wwwIbator\lib\ojdbc14.jar" />
  <ibatorContext >
    <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:fff:@127.0.0.1:1521:ddd" userId="abc" password="123456" />

table tag can be written as
<table tableName=" The table name ">
<columnOverride column=" Field 1" javaType="Integer"/>
<columnOverride column=" Field 2" javaType="Integer"/>
</ Table>
Behind the java type

相关文章
  • Optimized ibator use (transfer) 2010-11-05

    1. Download the optimized version of the ibator, get rid of a lot of unnecessary content, in the face there are some nasty comments no use ibatorgenerator, etc. are optimized. 2. Write ibatorConfig.xml <?xml version="1.0" encoding="UTF-8

  • Ibator optimized version of the code generation process 2010-08-19

    1. Download optimized version of ibator, removed a lot of unnecessary elements, the face of nasty comments there are some useless ibatorgenerator so, is optimized. 2. Write ibatorConfig.xml <?xml version="1.0" encoding="UTF-8" ?>

  • sql indexing, and optimized the sql statement, sql paging stored procedure (transfer) 2011-03-24

    When using the clustered index or non-clustered index The following table summarizes when to use clustered index or non-clustered index (very important). Action Description Using the clustered index Use of non-clustered index Column sort is often gro

  • 12 The most important J2EE best practices (transfer) 2009-04-05

    12 The most important J2EE best practices (transfer) Best Practices: 1, always use the MVC framework. 2, at each level are the application of automated unit testing and test management. 3, in accordance with the norms for the development, rather than

  • (Transfer) Checkpoint Xiangjie 2010-03-20

    (Transfer) Checkpoint Xiangjie Transfer from Bone Study Notes Appear in alert_.log Checkpoint not Complete 2008-06-25 15:18 alter_ORCL.log as follows: Wed Jun 25 02:25:59 2008 Thread 1 cannot allocate new log, sequence 381753 Checkpoint not complete

  • Win7 System Services Comprehensive Analysis of the (transfer) 2010-05-28

    As for the computer "old bird" who, the system services is often optimized system parameters, and many system performance parameters and option settings, system services in a variety of optimization is to bring more direct, tangible performance,

  • Network load images delayed implementation code, beyond the jquery control, March 26, 2010, save flow (transfer) 2010-06-11

    Taobao, QQ, there Dangdang, Amazon, like the network has the effect of class, the principle is that to load the picture, mainly used for large-scale Web site to save bandwidth, but what they provide compression confusion not see, but also Some of wha

  • Memcached depth analysis of the (transfer) 2010-09-11

    Memcached depth analysis of the (transfer) February 11, 2009 Read Comments comment Memcached is danga.com (operating LiveJournal's engineering team) development of a distributed memory object caching system, used in the dynamic system to reduce datab

  • MyEclipse optimized collection 2010-11-08

    Step one: cancel the automatic validation there are a bunch of validation, what xml, jsp, jsf, js, etc., we do not need to automatically check all about, but time will need to manually check it! Cancellation method: windows-> perferences-> myeclipse

  • PKU Online Judge POJ classification of the most widely circulated, and hope will cut the (transfer) 2010-12-16

    Transfer from http://bbs.pediy.com/showthread.php?t=123253 Classification of multiple versions of the POJ The most widely circulated a Category: Early: One. Basic algorithm: (1) enumeration. (Poj1753, poj2965) (2) greedy (poj1328, poj2109, poj2586) (

  • Webkit study (transfer) 2010-12-17

    http://blog.csdn.net/hou_jiong/archive/2009/01/18/3831022.aspx Collection of original research reports WebKit Directory One. Webkit Introduction .. 3 II. Detailed Webkit compile .. 5 1. .. 5 dependent libraries and introduced 2.X11 + Gtk + WebKit Det

  • Large-scale high-load websites high concurrent system architecture [transfer] 2010-12-20

    Transfer from: http://www.toplee.com/blog/71.html A small site, such as personal Web site, you can use the most simple static html pages to realize, with some pictures to beautify the results, all pages are stored in a directory, such a site on the s

  • Depth analysis of Google PageRank technology (transfer) 2011-05-29

    A: What is PageRank (page rank) PageRank (page rank) is used for evaluation of a Google page "importance" of a method. Title in the blend such as logo and all other factors such as Keywords, after identification, Google PageRank to adjust result

  • Access performance handling large sites (transfer set) 2011-07-28

    Website performance optimization and high-performance system architecture (ZT) Talk about the large high concurrent high load site architecture reproduced leave Source: Chun Lin Michael's blog (http://www.toplee.com/blog/?p=71) Trackback Url: http://

  • Simple use of stored procedures (transfer) 2011-05-29

    The format of the stored procedure specification: CREATE PROCEDURE XXX / * Incoming parameter list 1: name 2: type, including the length of the Eg: @ strUNIT_CODE varCHAR (3) * / Parameter 1, Parameter 2 ... ... ... ... ... As / * Within the paramete

  • [Transfer] Oracle query optimization millions of lines of data 2011-08-15

    Query Optimization 1 the query is optimized, should avoid full table scans, we should first consider where and order by columns on the index involved. (2) should be avoided in the where clause to determine the value of the field null will cause the e

  • Introduce the framework of paragraph eight and comparison JS (transfer) 2009-05-24

    Introduce the framework of paragraph eight and comparison JS (transfer) March 26, 2009 Thursday 05:41 PMDojo Dojo is the most powerful JS framework, which give up their own Wiki has a definition, Dojo is a JavaScript prepared with open-source DHTML t

  • HQL: Hibernate Query Language (Transfer from the official website) 2009-09-04

    HQL: Hibernate Query Language (Transfer from the official website) Chapter 15 HQL: Hibernate Query Language Hibernate is equipped with a very powerful query language, this language looks very much like SQL. Grammatical structure but do not be fooled

  • This is the best I can find an article on the java garbage collection the (transfer) 2010-03-29

    This is the best I can find an article on the java garbage collection the (transfer) We know that many programming languages are allowed in the program run-time dynamically allocated memory space. A variety of ways to allocate memory, depending on th

  • (Transfer) ibatis and hibernate Comparison 2010-03-29

    Have recently been hesitant, wants to be a web system. Want to use hibernate to do data persistence layer, when the previously used and found that hibernate is not as fast as we thought, but also a lot of trouble. Updated each time the field had to r