Skip to content

NullNotion is an IntelliJ plugin that helps you automatically annotate fields in an entity class with @nonnull or @nullable based on if they are set as not null in the database.

Notifications You must be signed in to change notification settings

DineshSolanki/NullNotion

Repository files navigation

NullNotion IntelliJ Plugin

Lines of code

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!

Installation

Get NullNotion from the JetBrains Plugin Marketplace

  • 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).

Features

  • 🎯 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.

How to Use

  1. Install the NullNotion plugin from the JetBrains Plugin Marketplace.
  2. Right-click on an entity Java class annotated with @Table, or right-click inside the class.
  3. Choose "Process NullNotion" from the menu.
  4. On the first run of each project, you will be asked to select a database type and enter the connection string for the database.
  5. The plugin will run in the background, and you will be notified when it's completed.

Benefits

  • 🚀 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.

Screenshots

Screenshot 1 Screenshot 2

Support Us

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.

Contribution

We welcome contributions to NullNotion! If you want to contribute, please fork the repository, make your changes, and submit a pull request.

License

NullNotion is open-source software licensed under the GPL-3 License.

Development powered by JetBrains.

https://www.jetbrains.com/?from=NullNotion

Let NullNotion enhance your IntelliJ experience! 🚀✨

About

NullNotion is an IntelliJ plugin that helps you automatically annotate fields in an entity class with @nonnull or @nullable based on if they are set as not null in the database.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages