NullNotion is your ultimate companion in IntelliJ that automagically annotates fields in your entity classes with @NonNull
or @Nullable
based on their database constraints. No more tedious manual annotations!
-
Installing from the plugin repository within the IDE:
- Go to Preferences(Settings) > Plugins > Marketplace.
- Search for "NullNotion" and install the plugin.
-
Installing manually:
- Download the plugin package from [GitHub Releases][gh:releases] or the [JetBrains Plugin Repository][plugin-versions].
- Go to Preferences(Settings) > Plugins > βοΈ > Install plugin from disk....
- Select the downloaded plugin package and install (no need to unzip).
- π― Automatically annotates fields in an entity class with
@NonNull
or@Nullable
based on database constraints. - π‘οΈ Supports MSSQL, MySQL, PostgreSQL, and Oracle database types.
- π Saves database connection information for each project.
- Install the NullNotion plugin from the JetBrains Plugin Marketplace.
- Right-click on an entity Java class annotated with
@Table
, or right-click inside the class. - Choose "Process NullNotion" from the menu.
- On the first run of each project, you will be asked to select a database type and enter the connection string for the database.
- The plugin will run in the background, and you will be notified when it's completed.
- π Provides the developer with IDE static analysis hints on potential NPE problems.
- β±οΈ Saves time and effort in manually annotating fields with
@NonNull
or@Nullable
. - π Works in the background, allowing you to continue working while it processes.
- π± Ideal for Spring Boot projects.
You can support us in various ways:
- β Star this project on GitHub.
- π Share this plugin with your friends and colleagues.
- π Rate this plugin on the JetBrains Plugin Repository.
- π Make pull requests to improve the plugin.
- π© Report bugs if you encounter any.
- π‘ Share your ideas with us.
- π Become a sponsor to help further development.
We welcome contributions to NullNotion! If you want to contribute, please fork the repository, make your changes, and submit a pull request.
NullNotion is open-source software licensed under the GPL-3 License.
Development powered by JetBrains.
Let NullNotion enhance your IntelliJ experience! πβ¨