Why to use @AllArgsConstructor and @NoArgsConstructor together over an Entity?

The JPA specification requires that all persistent classes (@Entity) have a no-arg constructor, public or protected. (note that this is not necessarily true when dealing with some implementation like Hibernate, see this answer). This is needed because JPA uses the default constructor method to create a bean class using the reflection API. Indeed if your … Read more

IntelliJ IDEA: Enable Annotation processors by default

Current IDE version: File | New Projects Setup | Settings for New Projects…, navigate to the compiler settings, annotation processing and enable this option before importing the project. Previous versions: File | Other Settings | Default Settings, navigate to the compiler settings, annotation processing and enable this option before importing the project.

Attaching Gradle sources in IntelliJ IDEA

To improve on @anon58192932 answer you can use only gradleVersion and distributionType fields of Wrapper task and don’t need to manually create distributionUrl which is more error prone since you could change gradle version in one place, but not in the other. task wrapper(type: Wrapper) { gradleVersion = ‘4.2’ distributionType = Wrapper.DistributionType.ALL } @edit gradle … Read more

IntelliJ IDEA global environment variable configuration

I found a solution to set environment variables on IntelliJ that has been working very well for me, and is incredibly simple. Let me show you. This is the program (you can copy and paste it) we’re using to test: package com.javasd.intelijenv; import java.util.Map; public class Main { public static void main(String[] args) { Map<String, … Read more

After updating to Android Studio Arctic Fox, I cannot use any custom theme

Follow Simple Steps to Fix this Rename the {path-of-android-studio}/lib/gson-2.7.jar file to gson-2.7.jar.disabled. Restart Studio. where {path-of-android-studio} is by default C:\Program Files\Android\Android Studio on Windows and /Applications/Android Studio.app/Contents on Mac. The fix will be included in the next minor release of the 2020.3.1 Arctic Fox. Found From issue-tracker

Retrieving and setting split window settings for IntelliJ IDEA plugin development

This is untested code, but as it closely resmbles the procedures inside EditorsSplitters writeExternal and writePanel functions I am positive this will work. Presented are two methods: access output of writeExternal -> should be the more stable API and offers easier access to file information access components of splitter -> this way writeExternal creates it’s … Read more

Can’t render component diagram with PlantUML in IntelliJ

On a mac using Intellij, if Intellij cannot find graphviz, testdot doesn’t work and graphviz was installed with brew install graphviz: In Intellij, click the wrench icon on the far right of the menu panel that contains the plantuml view and editor arrangement. Click ‘Open settings’ For ‘Graphviz dot executable’ add /opt/homebrew/bin/dot. Click OK and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)