mybatis-generator-plugins | project provides a collection | Build Tool library
kandi X-RAY | mybatis-generator-plugins Summary
kandi X-RAY | mybatis-generator-plugins Summary
Maven users please add following repository and dependency declarations to your POM-File:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Overridden to add BLOBs methodGenerated by example
- Generates a method for the given method
- Generate the criteria class for the given class
- Adds the factory method to the criteria
- Generate a client update by primary key
- If primary key should be generated by an interface or not
- Generates a provider update if the given example method should be generated by the user
- Generate method body for decorators
- Validates the configuration
- Initializes the configuration
- Generate the base class
- Generate a provider update by the primary key selector
- Replies if the model class is generated
- Increment the number of providers generated by the given example method
- Adds a BLOBs method to the client class
- Override this method if you want to add BLOBs
- To be overridden by superclasses
- Add a provider method to be injected by the given example method
- Add BLOBs method generated by BOBsMethodGenerated
- Add a providerGenerated method to the map
- Delegates a provider method to the provider
- Evaluates whether a method should be applied to a provider
- Is the cache generated?
- Determines if the client is annotated
- Adds BLOBs method to the provider class
mybatis-generator-plugins Key Features
mybatis-generator-plugins Examples and Code Snippets
googlecode
http://docbook4j.googlecode.com/svn/m2-repo/releases/
net.javaforge.mybatis.generator
mybatis-generator-plugins
1.0.0
Community Discussions
Trending Discussions on mybatis-generator-plugins
QUESTION
Can you set custom suffix and naming rule mapper xml and interfaces in MyBatis Generator (MBG)?
For example, When generating mapper files for class Book. MBG generates mapper file BookMapper.xml and interface PartnerDao.java. However, I wish to change the suffix to something else, like BookMapperBase.xml or BookDaoBase.xml, and PartnerMapperBase.java or PartnerDaoBase.java.
The reason is, former colleagues were using BookMapper.xml for their hand-written sql statements and using the same name would cause confusion. Moreover, I do not wish to use generated mappers directly, but use custom mapper files that extend BookMapperBase.xml.
I have searched online and found some github projects and hot rod ORM, but is it really not supported by official Mybatis Generator? If not, what is your recommended alternative?
...ANSWER
Answered 2019-May-15 at 20:04There are a couple of options.
You could use a domain object renaming rule as documented here: http://www.mybatis.org/generator/configreference/domainObjectRenamingRule.html
If that doesn't work the way you want it to, you could write a MyBatis Generator plugin to change the names of the generated artifacts. There is an example here: https://github.com/mybatis/generator/blob/master/core/mybatis-generator-core/src/main/java/org/mybatis/generator/plugins/RenameExampleClassPlugin.java
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mybatis-generator-plugins
You can use mybatis-generator-plugins like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the mybatis-generator-plugins component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page