Please use the mailing list instead of creating issues on the tracker. Thank you!
- Create a new issue on the tracker.
- The best way to report a bug is to create a failing test case. Please see the Contributing code section.
- It is a good idea to discuss your changes on the mailing list to get feedback from the community.
- If you have a patch with unit tests, send a pull request. Please see the Contributing code section.
- Documentations are placed under src/site directory in the xdoc format, so it is basically the same as creating a patch to contribute documentation changes. Please see the Contributing code section.
Mybatis-core is now being auto formatted. Given nature of some code logic with mybatis, it is more appropriate to force a formatting structure manually for snippets such as sql statements. To do so, add following blocks around code.
// @formatter:off
to start the block of unformatted code// @formatter:on
to end the block of unformatted code
If comment sections need same behaviour such as javadocs, note that the entire block must be around entire comment as direct usage does not properly indicate that formatter treats it all as one comment block regardless.
- You are the author of your contributions and will always be.
- Everything you can find it this project is licensed under the Apache Software License 2.0
- Every contribution you do must be licensed under the Apache Software License 2.0. Otherwise we will not be able to accept it.
- Please make sure that all the new files you create hold the following header:
/*
* Copyright [year] the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
The best way to submit a patch is to send a pull request.
Here are the steps of a typical workflow.
- Fork the repository on GitHub.
- Clone your fork to your local machine.
- Create a topic branch with a descriptive name.
- Make changes with unit tests in the topic branch.
- Push commits to your fork on GitHub.
- Send a pull request.
For steps 1 to 3, please read this GitHub help if you are not familiar with these operations.
Step 4 and 5 are basic git operations. Please see the online documentation for its usage.
For how to write a unit test, please see the unit test page.