-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The IDE compiler have a lot of wrong problem report, maven build is okay #1159
Comments
Can you attach a sample project that reproduces these wrong problem reporting? That would be awesome. With regards to 1., this clearly sounds like an issue with the Spring specific validation that we should fix. Which IDE are you using? The Eclipse based Spring Tools or working inside of VSCode? |
@yiukalun any chance you can paste here a code snippet for something that has a problem marker that reads: |
@yiukalun I have pushed what i think would the fix for the composite repo key: de4a132 |
@yiukalun If you still face this issue and if you can create a small sample project for this, please create a separate issue for this and attach the sample project. Happy to look into this. |
I have the same problem, I am using VS code, and in another repo it works `package com.Dazzle.app.Dazzle.repositories; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import com.Dazzle.app.Dazzle.models.user.ERole; @repository `package com.Dazzle.app.Dazzle.models.user; import jakarta.persistence.*; @entity
} |
@raneem13j I'm not an expert in Spring Data :-\ I've trimmed your use case to the one below which I hope is showing the same issue: package demo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RoleRepository extends JpaRepository<Role, Long> {
} and the domain class: package demo;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "roles")
public class Role {
@Id
private Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
} It might be right in forcing to switch the repo key to |
@raneem13j Fixed with 1665b3f |
The IDE compiler wrongly reporting problem for several scenario.
Complaining about JpaRepository using composite key. When using composite key in JPA class, extending JpaRepository interface will report error "Expected Domain ID type is 'java.lang.Long", but it only complaining on some class, some other class using same composite key will have no problem.
I'm using org.json.JSONObject, the IDE already reference to the spring-starter org.json package and keep complaining that the toMap() function is not available from class.
The text was updated successfully, but these errors were encountered: