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! 🚀✨