实例介绍
mybatis-generator-1.3.5源码修改实现中文注释以及一些代码格式调整。
【实例截图】
【核心代码】
mybatis-generator-1.3.5源码修改
└── mybatis-generator-1.3.5
├── generatorConfig.xml
├── logs
│ └── ssm.log
├── mybatis-generator-plus
│ ├── logs
│ │ └── ssm.log
│ ├── pom.xml
│ └── src
│ └── main
│ ├── java
│ │ ├── com
│ │ │ └── fendo
│ │ │ └── test
│ │ │ └── StartUp.java
│ │ └── org
│ │ └── mybatis
│ │ └── generator
│ │ ├── ant
│ │ │ ├── AntProgressCallback.java
│ │ │ └── GeneratorAntTask.java
│ │ ├── api
│ │ │ ├── CommentGenerator.java
│ │ │ ├── ConnectionFactory.java
│ │ │ ├── DAOMethodNameCalculator.java
│ │ │ ├── FullyQualifiedTable.java
│ │ │ ├── GeneratedFile.java
│ │ │ ├── GeneratedJavaFile.java
│ │ │ ├── GeneratedXmlFile.java
│ │ │ ├── IntrospectedColumn.java
│ │ │ ├── IntrospectedTable.java
│ │ │ ├── JavaFormatter.java
│ │ │ ├── JavaTypeResolver.java
│ │ │ ├── MyBatisGenerator.java
│ │ │ ├── Plugin.java
│ │ │ ├── PluginAdapter.java
│ │ │ ├── ProgressCallback.java
│ │ │ ├── ShellCallback.java
│ │ │ ├── ShellRunner.java
│ │ │ ├── VerboseProgressCallback.java
│ │ │ ├── XmlFormatter.java
│ │ │ ├── dom
│ │ │ │ ├── DefaultJavaFormatter.java
│ │ │ │ ├── DefaultXmlFormatter.java
│ │ │ │ ├── OutputUtilities.java
│ │ │ │ ├── java
│ │ │ │ │ ├── CompilationUnit.java
│ │ │ │ │ ├── Field.java
│ │ │ │ │ ├── FullyQualifiedJavaType.java
│ │ │ │ │ ├── InitializationBlock.java
│ │ │ │ │ ├── InnerClass.java
│ │ │ │ │ ├── InnerEnum.java
│ │ │ │ │ ├── Interface.java
│ │ │ │ │ ├── JavaDomUtils.java
│ │ │ │ │ ├── JavaElement.java
│ │ │ │ │ ├── JavaReservedWords.java
│ │ │ │ │ ├── JavaVisibility.java
│ │ │ │ │ ├── Method.java
│ │ │ │ │ ├── Parameter.java
│ │ │ │ │ ├── PrimitiveTypeWrapper.java
│ │ │ │ │ ├── TopLevelClass.java
│ │ │ │ │ └── TopLevelEnumeration.java
│ │ │ │ └── xml
│ │ │ │ ├── Attribute.java
│ │ │ │ ├── Document.java
│ │ │ │ ├── Element.java
│ │ │ │ ├── TextElement.java
│ │ │ │ └── XmlElement.java
│ │ │ └── package.html
│ │ ├── codegen
│ │ │ ├── AbstractGenerator.java
│ │ │ ├── AbstractJavaClientGenerator.java
│ │ │ ├── AbstractJavaGenerator.java
│ │ │ ├── AbstractXmlGenerator.java
│ │ │ ├── RootClassInfo.java
│ │ │ ├── XmlConstants.java
│ │ │ ├── ibatis2
│ │ │ │ ├── Ibatis2FormattingUtilities.java
│ │ │ │ ├── IntrospectedTableIbatis2Java2Impl.java
│ │ │ │ ├── IntrospectedTableIbatis2Java5Impl.java
│ │ │ │ ├── dao
│ │ │ │ │ ├── DAOGenerator.java
│ │ │ │ │ ├── elements
│ │ │ │ │ │ ├── AbstractDAOElementGenerator.java
│ │ │ │ │ │ ├── CountByExampleMethodGenerator.java
│ │ │ │ │ │ ├── DeleteByExampleMethodGenerator.java
│ │ │ │ │ │ ├── DeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ ├── InsertMethodGenerator.java
│ │ │ │ │ │ ├── InsertSelectiveMethodGenerator.java
│ │ │ │ │ │ ├── SelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── SelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── SelectByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ ├── UpdateByExampleParmsInnerclassGenerator.java
│ │ │ │ │ │ ├── UpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ │ ├── UpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── UpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── UpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ │ │ └── UpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ │ └── templates
│ │ │ │ │ ├── AbstractDAOTemplate.java
│ │ │ │ │ ├── GenericCIDAOTemplate.java
│ │ │ │ │ ├── GenericSIDAOTemplate.java
│ │ │ │ │ ├── IbatisDAOTemplate.java
│ │ │ │ │ └── SpringDAOTemplate.java
│ │ │ │ ├── model
│ │ │ │ │ ├── BaseRecordGenerator.java
│ │ │ │ │ ├── ExampleGenerator.java
│ │ │ │ │ ├── PrimaryKeyGenerator.java
│ │ │ │ │ └── RecordWithBLOBsGenerator.java
│ │ │ │ └── sqlmap
│ │ │ │ ├── SqlMapGenerator.java
│ │ │ │ └── elements
│ │ │ │ ├── AbstractXmlElementGenerator.java
│ │ │ │ ├── BaseColumnListElementGenerator.java
│ │ │ │ ├── BlobColumnListElementGenerator.java
│ │ │ │ ├── CountByExampleElementGenerator.java
│ │ │ │ ├── DeleteByExampleElementGenerator.java
│ │ │ │ ├── DeleteByPrimaryKeyElementGenerator.java
│ │ │ │ ├── ExampleWhereClauseElementGenerator.java
│ │ │ │ ├── InsertElementGenerator.java
│ │ │ │ ├── InsertSelectiveElementGenerator.java
│ │ │ │ ├── ResultMapWithBLOBsElementGenerator.java
│ │ │ │ ├── ResultMapWithoutBLOBsElementGenerator.java
│ │ │ │ ├── SelectByExampleWithBLOBsElementGenerator.java
│ │ │ │ ├── SelectByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ ├── SelectByPrimaryKeyElementGenerator.java
│ │ │ │ ├── UpdateByExampleSelectiveElementGenerator.java
│ │ │ │ ├── UpdateByExampleWithBLOBsElementGenerator.java
│ │ │ │ ├── UpdateByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeySelectiveElementGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsElementGenerator.java
│ │ │ │ └── UpdateByPrimaryKeyWithoutBLOBsElementGenerator.java
│ │ │ └── mybatis3
│ │ │ ├── IntrospectedTableMyBatis3Impl.java
│ │ │ ├── IntrospectedTableMyBatis3SimpleImpl.java
│ │ │ ├── ListUtilities.java
│ │ │ ├── MyBatis3FormattingUtilities.java
│ │ │ ├── javamapper
│ │ │ │ ├── AnnotatedClientGenerator.java
│ │ │ │ ├── JavaMapperGenerator.java
│ │ │ │ ├── MixedClientGenerator.java
│ │ │ │ ├── SimpleAnnotatedClientGenerator.java
│ │ │ │ ├── SimpleJavaClientGenerator.java
│ │ │ │ ├── SqlProviderGenerator.java
│ │ │ │ └── elements
│ │ │ │ ├── AbstractJavaMapperMethodGenerator.java
│ │ │ │ ├── CountByExampleMethodGenerator.java
│ │ │ │ ├── DeleteByExampleMethodGenerator.java
│ │ │ │ ├── DeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ ├── InsertMethodGenerator.java
│ │ │ │ ├── InsertSelectiveMethodGenerator.java
│ │ │ │ ├── SelectAllMethodGenerator.java
│ │ │ │ ├── SelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ ├── SelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ ├── SelectByPrimaryKeyMethodGenerator.java
│ │ │ │ ├── UpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ ├── UpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ ├── UpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ ├── annotated
│ │ │ │ │ ├── AnnotatedCountByExampleMethodGenerator.java
│ │ │ │ │ ├── AnnotatedDeleteByExampleMethodGenerator.java
│ │ │ │ │ ├── AnnotatedDeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ │ ├── AnnotatedInsertMethodGenerator.java
│ │ │ │ │ ├── AnnotatedInsertSelectiveMethodGenerator.java
│ │ │ │ │ ├── AnnotatedSelectAllMethodGenerator.java
│ │ │ │ │ ├── AnnotatedSelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── AnnotatedSelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── AnnotatedSelectByPrimaryKeyMethodGenerator.java
│ │ │ │ │ ├── AnnotatedUpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ ├── AnnotatedUpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── AnnotatedUpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── AnnotatedUpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ │ ├── AnnotatedUpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ │ └── AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ └── sqlprovider
│ │ │ │ ├── AbstractJavaProviderMethodGenerator.java
│ │ │ │ ├── ProviderApplyWhereMethodGenerator.java
│ │ │ │ ├── ProviderCountByExampleMethodGenerator.java
│ │ │ │ ├── ProviderDeleteByExampleMethodGenerator.java
│ │ │ │ ├── ProviderInsertSelectiveMethodGenerator.java
│ │ │ │ ├── ProviderSelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ ├── ProviderSelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ ├── ProviderUpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ ├── ProviderUpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ ├── ProviderUpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ └── ProviderUpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ ├── model
│ │ │ │ ├── BaseRecordGenerator.java
│ │ │ │ ├── ExampleGenerator.java
│ │ │ │ ├── PrimaryKeyGenerator.java
│ │ │ │ ├── RecordWithBLOBsGenerator.java
│ │ │ │ └── SimpleModelGenerator.java
│ │ │ └── xmlmapper
│ │ │ ├── MixedMapperGenerator.java
│ │ │ ├── SimpleXMLMapperGenerator.java
│ │ │ ├── XMLMapperGenerator.java
│ │ │ └── elements
│ │ │ ├── AbstractXmlElementGenerator.java
│ │ │ ├── BaseColumnListElementGenerator.java
│ │ │ ├── BlobColumnListElementGenerator.java
│ │ │ ├── CountByExampleElementGenerator.java
│ │ │ ├── DeleteByExampleElementGenerator.java
│ │ │ ├── DeleteByPrimaryKeyElementGenerator.java
│ │ │ ├── ExampleWhereClauseElementGenerator.java
│ │ │ ├── InsertElementGenerator.java
│ │ │ ├── InsertSelectiveElementGenerator.java
│ │ │ ├── ResultMapWithBLOBsElementGenerator.java
│ │ │ ├── ResultMapWithoutBLOBsElementGenerator.java
│ │ │ ├── SelectByExampleWithBLOBsElementGenerator.java
│ │ │ ├── SelectByExampleWithoutBLOBsElementGenerator.java
│ │ │ ├── SelectByPrimaryKeyElementGenerator.java
│ │ │ ├── SimpleSelectAllElementGenerator.java
│ │ │ ├── SimpleSelectByPrimaryKeyElementGenerator.java
│ │ │ ├── UpdateByExampleSelectiveElementGenerator.java
│ │ │ ├── UpdateByExampleWithBLOBsElementGenerator.java
│ │ │ ├── UpdateByExampleWithoutBLOBsElementGenerator.java
│ │ │ ├── UpdateByPrimaryKeySelectiveElementGenerator.java
│ │ │ ├── UpdateByPrimaryKeyWithBLOBsElementGenerator.java
│ │ │ └── UpdateByPrimaryKeyWithoutBLOBsElementGenerator.java
│ │ ├── config
│ │ │ ├── ColumnOverride.java
│ │ │ ├── ColumnRenamingRule.java
│ │ │ ├── CommentGeneratorConfiguration.java
│ │ │ ├── Configuration.java
│ │ │ ├── ConnectionFactoryConfiguration.java
│ │ │ ├── Context.java
│ │ │ ├── GeneratedKey.java
│ │ │ ├── IgnoredColumn.java
│ │ │ ├── IgnoredColumnException.java
│ │ │ ├── IgnoredColumnPattern.java
│ │ │ ├── JDBCConnectionConfiguration.java
│ │ │ ├── JavaClientGeneratorConfiguration.java
│ │ │ ├── JavaModelGeneratorConfiguration.java
│ │ │ ├── JavaTypeResolverConfiguration.java
│ │ │ ├── MergeConstants.java
│ │ │ ├── ModelType.java
│ │ │ ├── PluginConfiguration.java
│ │ │ ├── PropertyHolder.java
│ │ │ ├── PropertyRegistry.java
│ │ │ ├── SqlMapGeneratorConfiguration.java
│ │ │ ├── TableConfiguration.java
│ │ │ ├── TypedPropertyHolder.java
│ │ │ └── xml
│ │ │ ├── ConfigurationParser.java
│ │ │ ├── IbatorConfigurationParser.java
│ │ │ ├── MyBatisGeneratorConfigurationParser.java
│ │ │ ├── ParserEntityResolver.java
│ │ │ ├── ParserErrorHandler.java
│ │ │ ├── ibator-config_1_0.dtd
│ │ │ └── mybatis-generator-config_1_0.dtd
│ │ ├── exception
│ │ │ ├── InvalidConfigurationException.java
│ │ │ ├── ShellException.java
│ │ │ └── XMLParserException.java
│ │ ├── internal
│ │ │ ├── DefaultCommentGenerator.java
│ │ │ ├── DefaultDAOMethodNameCalculator.java
│ │ │ ├── DefaultShellCallback.java
│ │ │ ├── DomWriter.java
│ │ │ ├── ExtendedDAOMethodNameCalculator.java
│ │ │ ├── JDBCConnectionFactory.java
│ │ │ ├── NullProgressCallback.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── PluginAggregator.java
│ │ │ ├── XmlFileMergerJaxp.java
│ │ │ ├── db
│ │ │ │ ├── ActualTableName.java
│ │ │ │ ├── DatabaseDialects.java
│ │ │ │ ├── DatabaseIntrospector.java
│ │ │ │ └── SqlReservedWords.java
│ │ │ ├── rules
│ │ │ │ ├── BaseRules.java
│ │ │ │ ├── ConditionalModelRules.java
│ │ │ │ ├── FlatModelRules.java
│ │ │ │ ├── HierarchicalModelRules.java
│ │ │ │ ├── Rules.java
│ │ │ │ └── RulesDelegate.java
│ │ │ ├── types
│ │ │ │ ├── JavaTypeResolverDefaultImpl.java
│ │ │ │ └── JdbcTypeNameTranslator.java
│ │ │ └── util
│ │ │ ├── ClassloaderUtility.java
│ │ │ ├── EqualsUtil.java
│ │ │ ├── HashCodeUtil.java
│ │ │ ├── JavaBeansUtil.java
│ │ │ ├── StringUtility.java
│ │ │ └── messages
│ │ │ ├── Messages.java
│ │ │ └── messages.properties
│ │ ├── logging
│ │ │ ├── AbstractLogFactory.java
│ │ │ ├── JdkLoggingImpl.java
│ │ │ ├── Log.java
│ │ │ ├── Log4jImpl.java
│ │ │ └── LogFactory.java
│ │ └── plugins
│ │ ├── CachePlugin.java
│ │ ├── CaseInsensitiveLikePlugin.java
│ │ ├── EqualsHashCodePlugin.java
│ │ ├── FluentBuilderMethodsPlugin.java
│ │ ├── MapperConfigPlugin.java
│ │ ├── RenameExampleClassPlugin.java
│ │ ├── RowBoundsPlugin.java
│ │ ├── SerializablePlugin.java
│ │ ├── SqlMapConfigPlugin.java
│ │ ├── ToStringPlugin.java
│ │ └── VirtualPrimaryKeyPlugin.java
│ └── resources
│ ├── generatorConfig.xml
│ └── log4j.properties
├── mybatis-generator-plus.jar
├── run.bat
└── src
└── main
└── java
├── mapper
│ ├── TUserDao.java
│ └── TUserMapper.xml
└── pojo
└── TUser.java
51 directories, 273 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论