Recently busy studying Glusterfs, was going to write a few blog weekend, but due to debug some of the new features of Glusterfs used a whole day, and a day to accompany the wife of adults to go shopping! This evening after browsing the microblogging discovery time has come to blog one, this blog content is mainly in the previous period of time to study the Thrift code generator of the
If you enter this article, you also want to MyBatis generator automatically generate mapper XML model, automatically generate the database field notes for comment information. So as long as you finish reading this article, you can help you achieve what you want. The end of the article will have the source address and jar.
Download Mybatis-generator-core
In the app development project, sometimes we can use APK anti-compilation to learn from other people's ideas, but must not be used for improper use! Understand the anti-compilation programmer also need not worry, can learn more about the Application security encryption technology , so that you do not have to worry about your app is anti-compilation! Of course the purpose of this article is to share.APK anti-compilation generator
In the app development project, sometimes we can use APK anti-compilation to learn from other people's ideas, but must not be used for improper use! Understand the anti-compilation programmer also need not worry, can learn more about the Application security encryption technology , so that you do not have to worry about your app is anti-compilation! Of course the purpose of this article is to share.APK anti-compilation generator
In the app development project, sometimes we can use APK anti-compilation to learn from other people's ideas, but must not be used for improper use! Understand the anti-compilation programmer also need not worry, can learn more about the Application security encryption technology , so that you do not have to worry about your app is anti-compilation! Of course the purpose of this article is to share.APK anti-compilation generator
= "true"> Generatedkeycolumn= "Id"SQLStatement= "MySQL"Identity= "true"/> Table> Context>generatorconfiguration>Several of these key nodes:1.jdbcConnection: Each context must have a jdbcconnection node that specifies the database connection properties required for the database connection.2. Javamodelgenerator: Used to define the settings that generate the model class.3.sqlMapGenerator: Used to define the properties of the SQL map generator4. Javaclientgenerator: Used to defi
looking for open source code to take over according to their own needs to change.
So found Rapid-generator this open source tool, students can download Rapid-generator direct use, according to their needs to write a good template on the line.
Because of the special circumst
estimated before running, obviously did not introduce the MySQL driver jar package, the modified statement is as follows:Java-cp/home/user/backup/mybatis-generator-core-1.3.2.jar:/home/user/backup/mysql-connector-java-5.1.36.jar Org.mybatis.generator.api.shellrunner-configfile Generatorconfig.xmlAfter running, successfully generated files such as Pojo, pay attention to Generatorconfig.xml file Javamodelgen
estimated, obviously did not introduce a MySQL driver jar package, modified statements are as follows:
Java-cp/home/user/backup/mybatis-generator-core-1.3.2.jar:/home/user/backup/mysql-connector-java-5.1.36.jar Org.mybatis.generator.api.shellrunner-configfile Generatorconfig.xml
After the operation, the smooth generation of Pojo and other files, to pay attent
About MyBatis GeneratorMyBatis Generator (MBG) is a MyBatis code generator MyBatis and IBATIS. He can generate MyBatis versions of the code, and Ibatis 2.2.0 version of the code after. He can introspect the tables (or tables) of the database and generate the underlying objec
Java code Generator (only completes the entity class generation and Formbean class to the entity class conversion code, because I just want this part of the code)
1. Main function, the entity class is generated by database;
2. Editing environment: Jdk1.5,jbuilder2006,sqlserv
Reminder: A. Project development environment: M y E clipse6.5 + jdk1.6 + Tomcat6.0; B. The database currently tested has MYSQL5, oracle10g, SqlServer200 C. Google Chrome is recommended, and the easy UI uses other browsers to load slow project deployment steps:The first step. Decompression procedure, import myeclipse If there is no Java EE support, need to add;Step two. Modify the configuration file[1]. Code
Many years ago used Li Tianping predecessors, their own change, and then the teacher Li did move soft, not to the source code, modification is not very convenient. Plus I need to go to the Java direction now, so I decided to do it myself. So far it has taken one weeks to look at the current results.The last is the code
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.