Last update, some problems Spring Boot app

Answered

Firstly, i am getting errors on parameters of annotations for example: Cannot resolve column 'word_id'. It asks me to assign data source

Secondly i cant alt+insert create constructor(can only create empty constructor) in entity class.

How can i fix it? 

1
3 comments

>i am getting errors on parameters of annotations for example: Cannot resolve column 'word_id'. It asks me to assign data source

Have you tried to assign one? For this the module should have the JPA facet configured and data source should be configured in Database tool window.

>Secondly i cant alt+insert create constructor(can only create empty constructor) in entity class.

Please provide screenshots describing the problem and expected/actual result you get.

 

If it is a Maven(Gradle) project try re-importing it in Maven(Gradle) tool window. Make sure it can be built and run successfully.

0
Avatar
Permanently deleted user

"Secondly i cant alt+insert create constructor(can only create empty constructor) in entity class"

I have the same problem with constructor

1. Add JPA facet

2. Create Entity POJO 

3. Generate constructor by Alt+Insert hotkey

 

Result - i have empty constructor, but i expect constructor with all fields

IntelliJ IDEA 2019.3 (Ultimate Edition)
Build #IU-193.5233.102, built on November 28, 2019
Subscription is active until March 12, 2020
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 8125M
Cores: 8
Registry: debugger.watches.in.variables=false
Non-Bundled Plugins: CMD Support, Lombook Plugin, Pythonid, com.alayouni.ansiHighlight, com.bruce.intellijplugin.generatesetter, com.herokuapp.vuesion, com.intellij.ideolog, com.ppolivka.gitlabprojects, net.seesharpsoft.intellij.plugins.csv, org.jetbrains.plugins.vue, org.mapstruct.intellij, org.pmesmeur.sketchit, some.awesome, tv.twelvetone.intellij.plugins.intellivue

0

Please sign in to leave a comment.